IrDAClientGetRemoteMachineName Method

Gets the name of the peer device using the specified socket.

Definition

Namespace: InTheHand.Net.Sockets
Assembly: InTheHand.Net.IrDA (in InTheHand.Net.IrDA.dll) Version: 4.0.2+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static string GetRemoteMachineName(
	Socket irdaSocket
)

Parameters

irdaSocket  Socket
A connected IrDA Socket.

Return Value

String
The name of the remote device.

Remarks

This finds the name of the device to which the socket is connection, an exception will occur if the socket is not connected.

Exceptions

ArgumentNullExceptions is null (Nothing in Visual Basic).
ArgumentOutOfRangeException The remote device is not present in the list of discovered devices.
InvalidOperationException The socket is not connected.

See Also