Gets the device address and service from which the request originated.
The EndPoint instance returned will be of the
subtype that matches the address family that the ObexListener
is listening on. For instance if the listener was created with
ObexTransport.Bluetooth
then the EndPoint will be of type
BluetoothEndPoint, and similarly for
IrDAEndPoint and
IPEndPoint.
C#
CopyC#
Visual Basic
Copy
ObexListener lsnr = new ObexListener(ObexTransport.Bluetooth)
... ...
ObexListenerRequest olr = ...
BluetoothEndPoint remoteEp = (BluetoothEndPoint)olr.RemoteEndPoint;
BluetoothAddress remoteAddr = remoteEp.Address;Dim lsnr As New ObexListener(ObexTransport.IrDA) ... ... Dim olr As ObexListenerRequest = ... Dim remoteEp As IrDAEndPoint = CType(olr.RemoteEndPoint, IrDAEndPoint); Dim remoteAddr As IrDAAddress = remoteEp.Address;