C# Class NetworkCommsDotNet.Connections.Bluetooth.BluetoothConnectionListener

A Bluetooth connection listener
Inheritance: ConnectionListenerBase
Exibir arquivo Open project: MarcFletcher/NetworkComms.Net

Public Methods

Method Description
BluetoothConnectionListener ( SendReceiveOptions sendReceiveOptions, ApplicationLayerProtocolStatus applicationLayerProtocol, bool allowDiscoverable = false ) : System

Create a new instance of BluetoothConnectionListener

Private Methods

Method Description
BluetoothConnectionReceivedAsync ( IAsyncResult ar ) : void

Handle a new incoming bluetooth connection

StartListening ( EndPoint desiredLocalListenEndPoint, bool useRandomPortFailOver ) : void
StopListening ( ) : void

Method Details

BluetoothConnectionListener() public method

Create a new instance of BluetoothConnectionListener
public BluetoothConnectionListener ( SendReceiveOptions sendReceiveOptions, ApplicationLayerProtocolStatus applicationLayerProtocol, bool allowDiscoverable = false ) : System
sendReceiveOptions SendReceiveOptions The send receive options to use for this listener.
applicationLayerProtocol ApplicationLayerProtocolStatus If enabled NetworkComms.Net uses a custom /// application layer protocol to provide useful features such as inline serialisation, /// transparent packet transmission, remote peer handshake and information etc. We strongly /// recommend you enable the NetworkComms.Net application layer protocol.
allowDiscoverable bool Determines if the newly created will be discoverable if is enabled.
return System