![]() |
MTSC
1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
|
Handler interface for client communication. More...
Public Member Functions | |
| bool | InitializeConnection (Client client) |
| Called when the connection is being initialized. More... | |
| bool | HandleSendMessage (Client client, ref Message message) |
| Called when a message is being sent to the server. More... | |
| bool | PreHandleReceivedMessage (Client client, ref Message message) |
| Called before the message is handled. Use this method to modify the message if necesarry. More... | |
| bool | HandleReceivedMessage (Client client, Message message) |
| Called when a message has been received. More... | |
| void | Tick (Client client) |
| Called every cycle. This method should perform regular actions on the connection. More... | |
| void | Disconnected (Client client) |
| Called when the client is disconnected. More... | |
Handler interface for client communication.
Definition at line 11 of file IHandler.cs.
| void MTSC.Client.Handlers.IHandler.Disconnected | ( | Client | client | ) |
Called when the client is disconnected.
| client | Client object. |
| bool MTSC.Client.Handlers.IHandler.InitializeConnection | ( | Client | client | ) |
Called when the connection is being initialized.
| client | Client object. |
If this method returns false, the connection will fail and return false.
| void MTSC.Client.Handlers.IHandler.Tick | ( | Client | client | ) |
Called every cycle. This method should perform regular actions on the connection.
| client | Client object. |