Interface for communication handlers.
More...
Interface for communication handlers.
Definition at line 11 of file IHandler.cs.
◆ ClientRemoved()
| void MTSC.Server.Handlers.IHandler.ClientRemoved |
( |
Server |
server, |
|
|
ClientData |
client |
|
) |
| |
Handles the removal of a client from the server.
- Parameters
-
| client | Client about to be removed. |
| server | Server calling the handler. |
◆ HandleClient()
| bool MTSC.Server.Handlers.IHandler.HandleClient |
( |
Server |
server, |
|
|
ClientData |
client |
|
) |
| |
Handles a new client.
- Parameters
-
| client | Client to be handled. |
| server | Server calling the handler. |
- Returns
- True if the handler processed the client.
◆ HandleReceivedMessage()
Handles the received message.
- Parameters
-
- Returns
- True if the message has been handled, false if the message has not been handled.
◆ HandleSendMessage()
Handles a message before sending.
- Parameters
-
- Returns
- True if no other handler should handle this message.
◆ PreHandleReceivedMessage()
| bool MTSC.Server.Handlers.IHandler.PreHandleReceivedMessage |
( |
Server |
server, |
|
|
ClientData |
client, |
|
|
ref Message |
message |
|
) |
| |
Called before the message handling. Perform here any processing of the message.
- Parameters
-
- Returns
- True if the message has been preprocessed and no other handler should handle it anymore.
◆ Tick()
| void MTSC.Server.Handlers.IHandler.Tick |
( |
Server |
server | ) |
|
Method performs regular operations onto the server.
- Parameters
-
| server | Server calling the handler. |
The documentation for this interface was generated from the following file: