IrDAClient(String) Constructor

Initializes a new instance of the IrDAClient class and connects to the specified service name.

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public IrDAClient(
	string service
)

Parameters

service  String
A String containing the service name to connect to.

Remarks

This is equivalent to calling the default constructor followed by Connect(String).

As noted the connection will be made to an arbitrary peer. This is most useful when it is expected that there will be only one device in range — as is often the case. If a connection is to be made to a particular remote peer, then use the IrDAClient(IrDAEndPoint) overload.

Infrared connections are made by specifying a Service Name, which can be any value provided the participating devices refer the same name.

See Connect(String) for the errors that can occur.

See Also