MTSC  1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
IHttpModule.cs
1 using MTSC.Common;
2 using MTSC.Server;
3 using MTSC.Server.Handlers;
4 using System;
5 using System.Collections.Generic;
6 using System.Text;
7 
9 {
13  public interface IHttpModule
14  {
22  bool HandleRequest(Server.Server server, HttpHandler handler, ClientData client, HttpMessage request, ref HttpMessage response);
27  void Tick(Server.Server server, HttpHandler handler);
28  }
29 }
void Tick(Server.Server server, HttpHandler handler)
Perform periodic operations.
Structure containing client information.
Definition: Server.cs:402
Handler for handling server http requests.
Definition: HttpHandler.cs:15
Server()
Creates an instance of server with default values.
Definition: Server.cs:68
Basic server class to handle TCP connections.
Definition: Server.cs:20
bool HandleRequest(Server.Server server, HttpHandler handler, ClientData client, HttpMessage request, ref HttpMessage response)
Handle the received request.
Definition: Client.cs:14
Interface for Http modules used by the server http handler.
Definition: IHttpModule.cs:13