ObexListenerRequestRemoteEndPoint Property

Gets the device address and service from which the request originated.

Definition

Namespace: InTheHand.Net
Assembly: InTheHand.Net.Obex (in InTheHand.Net.Obex.dll) Version: 4.0.5
C#
public EndPoint RemoteEndPoint { get; }

Property Value

EndPoint

Remarks

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.

Example

C#
C#
ObexListener lsnr = new ObexListener(ObexTransport.Bluetooth)
... ...
ObexListenerRequest olr = ...
BluetoothEndPoint remoteEp = (BluetoothEndPoint)olr.RemoteEndPoint;
BluetoothAddress remoteAddr = remoteEp.Address;
Visual Basic
VB
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;

See Also