Property | Type | Description | |
---|---|---|---|
asyncListenStarted | bool | ||
asyncListenerInRead | bool | ||
connectionEstablishWait | |||
connectionSetupException | bool | ||
connectionSetupExceptionStr | string | ||
connectionSetupWait | |||
incomingDataListenThread | Thread | ||
packetBuilder | |||
totalBytesRead | int |
Method | Description | |
---|---|---|
EstablishConnection ( ) : void |
Establish this connection
|
|
ToString ( ) : string |
Returns ConnectionInfo.ToString
|
Method | Description | |
---|---|---|
Connection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions ) : System |
Create a new connection object
|
|
ConnectionHandshake ( ) : void |
Performs a connection handshake with the remote end of the connection. Exchanges network identifier and any listener whose IPAddress matches the connection localEndPoint IPAddress.
|
|
EstablishConnectionSpecific ( ) : void |
Any connection type specific establish tasks. Should call at least ConnectionHandshake() or TriggerConnectionEstablishDelegates();
|
|
IncomingPacketHandleHandOff ( |
Attempts to use the data provided in packetBuilder to recreate something useful. If we don't have enough data yet that value is set in packetBuilder.
|
|
StartIncomingDataListen ( ) : void |
A connection specific method which triggers any requisites for accepting incoming data
|
|
TriggerConnectionEstablishDelegates ( ) : void |
Trigger connection establish delegates.
|
|
WaitForConnectionEstablish ( int waitTimeoutMS ) : bool |
Return true if the connection is established within the provided timeout, otherwise false
|
Method | Description | |
---|---|---|
CheckSumFailResendHandler ( |
Handle an incoming CheckSumFailResend packet type
|
|
ConnectionSetupHandler ( |
Handle an incoming ConnectionSetup packet type
|
|
ConnectionSetupHandlerFinal ( ConnectionInfo remoteConnectionInfo, bool &possibleClashWithExistingConnection, Connection &existingConnection ) : bool |
Attempts to complete the connection establish with a minimum of locking to avoid possible deadlocking
|
protected Connection ( ConnectionInfo connectionInfo, SendReceiveOptions defaultSendReceiveOptions ) : System | ||
connectionInfo | ConnectionInfo | ConnectionInfo corresponding to the new connection |
defaultSendReceiveOptions | SendReceiveOptions | The SendReceiveOptions which should be used as connection defaults |
return | System |
protected abstract EstablishConnectionSpecific ( ) : void | ||
return | void |
protected IncomingPacketHandleHandOff ( |
||
packetBuilder | The |
|
return | void |
protected abstract StartIncomingDataListen ( ) : void | ||
return | void |
protected TriggerConnectionEstablishDelegates ( ) : void | ||
return | void |
protected WaitForConnectionEstablish ( int waitTimeoutMS ) : bool | ||
waitTimeoutMS | int | Wait time in milliseconds before returning |
return | bool |
protected ManualResetEvent,System.Threading connectionEstablishWait | ||
return |
protected string connectionSetupExceptionStr | ||
return | string |
protected ManualResetEvent,System.Threading connectionSetupWait | ||
return |
protected Thread incomingDataListenThread | ||
return | Thread |
protected PacketBuilder,NetworkCommsDotNet.Tools packetBuilder | ||
return |