MTSC  1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
IWebsocketModule.cs
1 using MTSC.Server;
2 using MTSC.Server.Handlers;
3 using System;
4 using System.Collections.Generic;
5 using System.Text;
6 
8 {
9  public interface IWebsocketModule
10  {
17  void ConnectionInitialized(Server.Server server, WebsocketHandler handler, ClientData client);
25  bool HandleReceivedMessage(Server.Server server, WebsocketHandler handler, ClientData client, WebsocketMessage receivedMessage);
32  void ConnectionClosed(Server.Server server, WebsocketHandler handler, ClientData client);
33  }
34 }
bool HandleReceivedMessage(Server.Server server, WebsocketHandler handler, ClientData client, WebsocketMessage receivedMessage)
Handle a received message.
void ConnectionClosed(Server.Server server, WebsocketHandler handler, ClientData client)
Called when a connection has been closed.
Structure containing client information.
Definition: Server.cs:402
Class containing the bytes of a websocket received message.
Server()
Creates an instance of server with default values.
Definition: Server.cs:68
Basic server class to handle TCP connections.
Definition: Server.cs:20
Definition: Client.cs:14
void ConnectionInitialized(Server.Server server, WebsocketHandler handler, ClientData client)
Called when a connection has been initialized.