Property | Type | Description | |
---|---|---|---|
SyncRoot | object |
Property | Type | Description | |
---|---|---|---|
AddStateFlag | void | ||
CheckState | bool | ||
FireCloseEvent | void | ||
GetCloseReasonFromState | CloseReason | ||
GetCloseReasonValue | int | ||
ISocketSession | bool | ||
InternalClose | void | ||
OnSendEnd | void | ||
OnSendEnd | void | ||
ProcessReceivedData | System.ProcessResult | ||
RemoveStateFlag | void | ||
Send | void | ||
StartSend | void | ||
TryAddStateFlag | bool | ||
ValidateClosed | void | ||
ValidateNotInSendingReceiving | bool |
Method | Description | |
---|---|---|
ApplySecureProtocol ( ) : void | ||
Close ( CloseReason reason ) : void | ||
GetUnderlyStream ( ) : Stream | ||
Initialize ( IAppSession appSession ) : void | ||
SocketSession ( Socket client ) : System | ||
SocketSession ( string sessionID ) : System | ||
Start ( ) : void |
Starts this session.
|
|
TrySend ( ArraySegment |
Tries to send array segment.
|
|
TrySend ( IList |
Tries to send array segment.
|
Method | Description | |
---|---|---|
IsIgnorableException ( |
||
IsIgnorableSocketError ( int socketErrorCode ) : bool | ||
OnClosed ( CloseReason reason ) : void |
Called when [close].
|
|
OnReceiveEnded ( ) : void | ||
OnReceiveError ( CloseReason closeReason ) : void | ||
OnReceiveStarted ( ) : void | ||
OnSendError ( SendingQueue queue, CloseReason closeReason ) : void | ||
OnSendingCompleted ( SendingQueue queue ) : void | ||
SendAsync ( SendingQueue queue ) : void |
Sends in async mode.
|
|
SendSync ( SendingQueue queue ) : void |
Sends in sync mode.
|
|
StartSession ( ) : void |
Says the welcome information when a client connectted.
|
|
TryValidateClosedBySocket ( Socket &socket ) : bool |
Method | Description | |
---|---|---|
AddStateFlag ( int stateValue ) : void | ||
CheckState ( int stateValue ) : bool | ||
FireCloseEvent ( ) : void | ||
GetCloseReasonFromState ( ) : CloseReason | ||
GetCloseReasonValue ( CloseReason reason ) : int | ||
ISocketSession ( ) : bool | ||
InternalClose ( Socket client, CloseReason reason, bool setCloseReason ) : void | ||
OnSendEnd ( ) : void | ||
OnSendEnd ( bool isInClosingOrClosed ) : void | ||
ProcessReceivedData ( ArraySegment |
||
RemoveStateFlag ( int stateValue ) : void | ||
Send ( SendingQueue queue ) : void | ||
StartSend ( SendingQueue queue, int sendingTrackID, bool initial ) : void | ||
TryAddStateFlag ( int stateValue ) : bool | ||
ValidateClosed ( CloseReason closeReason ) : void | ||
ValidateNotInSendingReceiving ( ) : bool |
Validates the socket is not in the sending or receiving operation.
|
public abstract ApplySecureProtocol ( ) : void | ||
return | void |
public Initialize ( IAppSession appSession ) : void | ||
appSession | IAppSession | |
return | void |
protected IsIgnorableException ( |
||
e | ||
socketErrorCode | int | |
return | bool |
protected IsIgnorableSocketError ( int socketErrorCode ) : bool | ||
socketErrorCode | int | |
return | bool |
protected OnClosed ( CloseReason reason ) : void | ||
reason | CloseReason | |
return | void |
protected OnReceiveError ( CloseReason closeReason ) : void | ||
closeReason | CloseReason | |
return | void |
protected OnSendError ( SendingQueue queue, CloseReason closeReason ) : void | ||
queue | SendingQueue | |
closeReason | CloseReason | |
return | void |
protected OnSendingCompleted ( SendingQueue queue ) : void | ||
queue | SendingQueue | |
return | void |
protected abstract SendAsync ( SendingQueue queue ) : void | ||
queue | SendingQueue | The queue. |
return | void |
protected abstract SendSync ( SendingQueue queue ) : void | ||
queue | SendingQueue | The queue. |
return | void |
public SocketSession ( Socket client ) : System | ||
client | Socket | |
return | System |
public SocketSession ( string sessionID ) : System | ||
sessionID | string | |
return | System |
public TrySend ( ArraySegment |
||
segment | ArraySegment |
The segment. |
return | bool |
public TrySend ( IList |
||
segments | IList |
The segments. |
return | bool |
protected TryValidateClosedBySocket ( Socket &socket ) : bool | ||
socket | Socket | |
return | bool |