In The Hand
GetRemoteMachineName Method (irdaSocket)
NamespacesInTheHand.Net.SocketsIrDAClientGetRemoteMachineName(Socket)
.NET Components for Mobility
Gets the name of the peer device using the specified socket.
Declaration Syntax
C#Visual Basic
public static string GetRemoteMachineName(
	Socket irdaSocket
)
Public Shared Function GetRemoteMachineName ( _
	irdaSocket As Socket _
) As String
Parameters
irdaSocket (Socket)
A connected IrDA Socket.
Return Value
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
ExceptionCondition
ArgumentNullException s 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.

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0