2 using System.Collections.Generic;
3 using System.Net.Sockets;
Interface for communication handlers.
bool PreHandleReceivedMessage(Server server, ClientData client, ref Message message)
Called before the message handling. Perform here any processing of the message.
Structure containing client information.
void ClientRemoved(Server server, ClientData client)
Handles the removal of a client from the server.
void Tick(Server server)
Method performs regular operations onto the server.
bool HandleReceivedMessage(Server server, ClientData client, Message message)
Handles the received message.
Basic server class to handle TCP connections.
bool HandleClient(Server server, ClientData client)
Handles a new client.
bool HandleSendMessage(Server server, ClientData client, ref Message message)
Handles a message before sending.