Property | Type | Description | |
---|---|---|---|
Dispose | void | ||
onConnected | void | ||
onReceived | void | ||
onSent | void | ||
startReceive | void |
Method | Description | |
---|---|---|
Connect ( EpServerEngine.cs.ClientOps ops ) : void |
Connect to the server with given options
|
|
Disconnect ( ) : void |
Disconnect from the server
|
|
Dispose ( ) : void | ||
IocpTcpClient ( ) : System |
Default constructor
|
|
IocpTcpClient ( |
Default copy constructor
|
|
Send ( EpServerEngine.cs.Packet packet ) : void |
Send given packet to the server
|
|
Send ( byte data ) : void |
Send given data to the server
|
|
Send ( byte data, int offset, int dataSize ) : void |
Send given data to the server
|
Method | Description | |
---|---|---|
execute ( ) : void |
Make the connection to the server and start receiving
|
Method | Description | |
---|---|---|
Dispose ( bool isDisposing ) : void | ||
onConnected ( IAsyncResult result ) : void |
Connection callback function
|
|
onReceived ( IAsyncResult result ) : void |
Receive callback function
|
|
onSent ( IAsyncResult result ) : void |
Send callback function
|
|
startReceive ( ) : void |
Start to receive packet from the server
|
public Connect ( EpServerEngine.cs.ClientOps ops ) : void | ||
ops | EpServerEngine.cs.ClientOps | options for client |
return | void |
public IocpTcpClient ( |
||
b | the object to copy from | |
return | System |
public Send ( EpServerEngine.cs.Packet packet ) : void | ||
packet | EpServerEngine.cs.Packet | packet to send |
return | void |
public Send ( byte data, int offset, int dataSize ) : void | ||
data | byte | data in byte array |
offset | int | offset in bytes |
dataSize | int | data size in bytes |
return | void |