프로퍼티 | 타입 | 설명 | |
---|---|---|---|
asyncListenStarted | bool | ||
asyncListenerInRead | bool | ||
connectionEstablishWait | |||
connectionSetupException | bool | ||
connectionSetupExceptionStr | string | ||
connectionSetupWait | |||
incomingDataListenThread | Thread | ||
packetBuilder | |||
totalBytesRead | int |
메소드 | 설명 | |
---|---|---|
EstablishConnection ( ) : void |
Establish this connection
|
|
ToString ( ) : string |
Returns ConnectionInfo.ToString
|
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 | System |
protected abstract EstablishConnectionSpecific ( ) : void | ||
리턴 | void |
protected IncomingPacketHandleHandOff ( |
||
packetBuilder | The |
|
리턴 | void |
protected abstract StartIncomingDataListen ( ) : void | ||
리턴 | void |
protected TriggerConnectionEstablishDelegates ( ) : void | ||
리턴 | void |
protected WaitForConnectionEstablish ( int waitTimeoutMS ) : bool | ||
waitTimeoutMS | int | Wait time in milliseconds before returning |
리턴 | bool |
protected ManualResetEvent,System.Threading connectionEstablishWait | ||
리턴 |
protected ManualResetEvent,System.Threading connectionSetupWait | ||
리턴 |
protected PacketBuilder,NetworkCommsDotNet.Tools packetBuilder | ||
리턴 |