Connects to an Obex Server prompting the user for the details of the peer on the console, using a simple menu-based format.
For a list of all members of this type, see ConsoleMenuObexSessionConnection Members.
System.Object
Brecham.Obex.Net.TransportConnection
Brecham.Obex.Net.ObexTransportConnection
Brecham.Obex.Net.ObexSessionConnection
Brecham.Obex.Net.ConsoleMenuObexSessionConnection
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
A sample use would be as the following:
Connect to a Bluetooth, IrDA, or TCP peer [BIT]>b Bluetooth discovery... 0: Andy Hume, last seen: 08/10/2006 21:41:08 [InTheHand.Net.Sockets.BluetoothDeviceInfo] 1: AndyHumeE2, last seen: 08/10/2006 21:41:08 [InTheHand.Net.Sockets.BluetoothDeviceInfo] 2: ÁSBJÖRG, last seen: 08/10/2006 21:41:08 [InTheHand.Net.Sockets.BluetoothDeviceInfo] Choose which device by number>2 Connect to the Folder-Browsing server, select No for the default inbox [Y/n]> Will connect to the Folder-Browsing Target. Connecting... Connected. OBEX Connecting... OBEX Connected.Similar prompts are made if one of the other protocols is selected.
Further to the exceptions that can occur from the base classes on calling Connect, this class can also throw EndOfStreamException if the console input is closed whilst waiting for a response to one of the menu prompts.
Namespace: Brecham.Obex.Net
Assembly: TransportConnection (in TransportConnection.dll)
ConsoleMenuObexSessionConnection Members | Brecham.Obex.Net Namespace