Method | Description | |
---|---|---|
Disconnect ( string reason = null ) : void |
Immediately disconnects the client from the server.
|
|
Dispose ( ) : void | ||
WritePacket ( byte data ) : void |
Writes a packet to the client's stream.
|
Method | Description | |
---|---|---|
ClientBase ( IServerSession serverSession, IPacketFactory packetFactory, ILogger logger ) : System |
Initializes a new instance of the ClientBase class.
|
|
ProcessPacket ( |
When implemented in a derived class, processes the provided packet data.
|
Method | Description | |
---|---|---|
HandlePacket ( |
||
HandlePong ( ) : void | ||
InitializeSession ( IServerSession serverSession ) : IServerSession | ||
InitializeTimer ( ) : |
||
LogDisconnectReason ( IAccountSession session, string reason ) : void | ||
OnClosing ( ) : void | ||
OnPacketProcessing ( object sender, |
||
OnSessionClosing ( object sender, |
||
SendPing ( object sender, System.Timers.ElapsedEventArgs e ) : void |
protected ClientBase ( IServerSession serverSession, IPacketFactory packetFactory, ILogger logger ) : System | ||
serverSession | IServerSession | The network session to bind the instance to. |
packetFactory | IPacketFactory | The |
logger | ILogger | The logger to use for this client. |
return | System |
public Disconnect ( string reason = null ) : void | ||
reason | string | The reason for the disconnection. |
return | void |
protected abstract ProcessPacket ( |
||
args | The packet to be processed. | |
return | void |
public WritePacket ( byte data ) : void | ||
data | byte | The data of the packet. |
return | void |