C# 클래스 NetworkCommsDotNet.Connections.Bluetooth.BluetoothConnection

A connection type that uses Bluetooth RFCOMM to communicate
상속: Connection
파일 보기 프로젝트 열기: MarcFletcher/NetworkComms.Net 1 사용 예제들

공개 메소드들

메소드 설명
GetConnection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions, bool establishIfRequired = true ) : BluetoothConnection

Create a TCP connection with the provided connectionInfo and sets the connection default SendReceiveOptions. If there is an existing connection that is returned instead. If a new connection is created it will be registered with NetworkComms and can be retrieved using NetworkComms.GetExistingConnection(ConnectionInfo) and overrides.

GetConnection ( ConnectionInfo connectionInfo, bool establishIfRequired = true ) : BluetoothConnection

Create a BluetoothConnection with the provided connectionInfo. If there is an existing connection that will be returned instead. If a new connection is created it will be registered with NetworkComms and can be retrieved using NetworkComms.GetExistingConnection(ConnectionInfo) and overrides.

보호된 메소드들

메소드 설명
CloseConnectionSpecific ( bool closeDueToError, int logLocation ) : void
EstablishConnectionSpecific ( ) : void
SendStreams ( StreamTools streamsToSend, double maxSendTimePerKB, long totalBytesToSend ) : double[]
StartIncomingDataListen ( ) : void

비공개 메소드들

메소드 설명
BluetoothConnection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions, InTheHand.Net.Sockets.BluetoothClient btClient ) : System

Bluetooth connection constructor

ConnectSocket ( ) : void

If we were not provided with a btClient on creation we need to create one

GetConnection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions, InTheHand.Net.Sockets.BluetoothClient btClient, bool establishIfRequired = true ) : BluetoothConnection

Internal BluetoothConnection creation which hides the necessary internal calls

IncomingBluetoothDataSyncWorker ( ) : void

Synchronous incoming connection data worker

IncomingBluetoothPacketHandler ( IAsyncResult ar ) : void

Asynchronous incoming connection data delegate

메소드 상세

CloseConnectionSpecific() 보호된 메소드

protected CloseConnectionSpecific ( bool closeDueToError, int logLocation ) : void
closeDueToError bool
logLocation int
리턴 void

EstablishConnectionSpecific() 보호된 메소드

protected EstablishConnectionSpecific ( ) : void
리턴 void

GetConnection() 공개 정적인 메소드

Create a TCP connection with the provided connectionInfo and sets the connection default SendReceiveOptions. If there is an existing connection that is returned instead. If a new connection is created it will be registered with NetworkComms and can be retrieved using NetworkComms.GetExistingConnection(ConnectionInfo) and overrides.
public static GetConnection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions, bool establishIfRequired = true ) : BluetoothConnection
connectionInfo ConnectionInfo ConnectionInfo to be used to create connection
defaultSendReceiveOptions SendReceiveOptions The SendReceiveOptions which will be set as this connections defaults
establishIfRequired bool If true will establish the TCP connection with the remote end point before returning
리턴 BluetoothConnection

GetConnection() 공개 정적인 메소드

Create a BluetoothConnection with the provided connectionInfo. If there is an existing connection that will be returned instead. If a new connection is created it will be registered with NetworkComms and can be retrieved using NetworkComms.GetExistingConnection(ConnectionInfo) and overrides.
public static GetConnection ( ConnectionInfo connectionInfo, bool establishIfRequired = true ) : BluetoothConnection
connectionInfo ConnectionInfo ConnectionInfo to be used to create connection
establishIfRequired bool If true will establish the TCP connection with the remote end point before returning
리턴 BluetoothConnection

SendStreams() 보호된 메소드

protected SendStreams ( StreamTools streamsToSend, double maxSendTimePerKB, long totalBytesToSend ) : double[]
streamsToSend NetworkCommsDotNet.Tools.StreamTools
maxSendTimePerKB double
totalBytesToSend long
리턴 double[]

StartIncomingDataListen() 보호된 메소드

protected StartIncomingDataListen ( ) : void
리턴 void