Method | Description | |
---|---|---|
AsyncReceive ( byte data, int offset, int count, SocketReceiveCallback callback, object state = null ) : void | ||
AsyncSend ( byte data, int offset, int count, SocketSendCallback callback, object state = null ) : void | ||
Close ( ) : void | ||
Connect ( RemoteAddress address ) : void | ||
GetRemoteAddress ( ) : RemoteAddress | ||
IsConnected ( ) : bool | ||
IsDataAvailable ( ) : bool | ||
PoolSocket ( ) : System | ||
PoolSocket ( Socket socket ) : System.Net | ||
StartListening ( SocketConnectionAccepted callback ) : bool | ||
StopListening ( ) : void |
Method | Description | |
---|---|---|
OnReceiveComplete ( ReceiveEventArgs arg ) : void | ||
OnSendComplete ( SendEventArgs arg ) : void | ||
Send ( Message message ) : void | ||
SendData ( SendEventArgs args ) : SendResult | ||
StartReceiving ( ) : void | ||
TrySend ( ) : void |
Method | Description | |
---|---|---|
DrainThread ( ) : void |
The purpose of this thread is to look for each instance of PoolSocket and to flush data to be sent to the client. This method might change as i'm testing it not being on the server thread
|
|
Flush ( ) : void | ||
ISocket ( ) : void | ||
ListenThread ( object state ) : void | ||
ReceiveData ( ) : void |
public AsyncReceive ( byte data, int offset, int count, SocketReceiveCallback callback, object state = null ) : void | ||
data | byte | |
offset | int | |
count | int | |
callback | SocketReceiveCallback | |
state | object | |
return | void |
public AsyncSend ( byte data, int offset, int count, SocketSendCallback callback, object state = null ) : void | ||
data | byte | |
offset | int | |
count | int | |
callback | SocketSendCallback | |
state | object | |
return | void |
public Connect ( RemoteAddress address ) : void | ||
address | RemoteAddress | |
return | void |
protected OnReceiveComplete ( ReceiveEventArgs arg ) : void | ||
arg | ReceiveEventArgs | |
return | void |
protected OnSendComplete ( SendEventArgs arg ) : void | ||
arg | SendEventArgs | |
return | void |
public PoolSocket ( Socket socket ) : System.Net | ||
socket | Socket | |
return | System.Net |
protected SendData ( SendEventArgs args ) : SendResult | ||
args | SendEventArgs | |
return | SendResult |
public StartListening ( SocketConnectionAccepted callback ) : bool | ||
callback | SocketConnectionAccepted | |
return | bool |