diff --git a/MTSC/MTSC.csproj b/MTSC/MTSC.csproj
index e659e4a..ae004e4 100644
--- a/MTSC/MTSC.csproj
+++ b/MTSC/MTSC.csproj
@@ -5,12 +5,12 @@
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
| ▼NMTSC | |
| ▼NClient | |
| ▼NHandlers | |
| CBroadcastHandler | |
| CEncryptionHandler | |
| CHttpHandler | Handler for handling client http communication |
| CIHandler | Handler interface for client communication |
| CWebsocketHandler | Handler implementing websocket protocol |
| CClient | Base class for TCP Client |
| ▼NCommon | |
| ▼NHttp | |
| ▼NClientModules | |
| CIHttpModule | |
| ▼NServerModules | |
| CFileServerModule | |
| CHelloWorldModule | |
| CHttp404Module | Simple module that returns status code 404 |
| CIHttpModule | Interface for Http modules used by the server http handler |
| CHttpMessage | |
| ▼NWebSockets | |
| ▼NClientModules | |
| CChatModule | |
| CIWebsocketModule | Interface for websocket modules |
| ▼NServerModules | |
| CBroadcastModule | |
| CEchoModule | |
| CIWebsocketModule | |
| CWebsocketMessage | Class containing the bytes of a websocket received message |
| ▼NExceptions | |
| CExceptionConsoleLogger | Logs the received exceptions to the console |
| CExceptionThrower | Throws all handled exceptions |
| CIExceptionHandler | Handler to be used for handling exception |
| CInvalidFirstByteException | Exception in case of first invalid byte for websocket communication |
| CInvalidHeaderException | Exception for invalid headers |
| CInvalidHttpVersionException | Exception in case of Invalid HTTP Version |
| CInvalidPostFormException | Exception for invalid post forms |
| CInvalidRequestURIException | Exception cause by an invalid request URI |
| CInvalidStatusCodeException | Exception for invalid response status code |
| CInvalidWebsocketFormatException | |
| CMethodInvalidException | Invalid HTTP Method Exception |
| CNoDataException | |
| ▼NLogging | |
| CConsoleLogger | Basic logger that outputs the log messages to the console |
| CDebugConsoleLogger | |
| CILogger | Interface for loggers |
| ▼NServer | |
| ▼NHandlers | |
| CBroadcastHandler | Broadcast handler |
| CEncryptionHandler | Handler that encrypts the communication |
| CHttpHandler | Handler for handling server http requests |
| CIHandler | Interface for communication handlers |
| CWebsocketHandler | |
| CClientData | Structure containing client information |
| CServer | Basic server class to handle TCP connections |
| CMessage |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception for invalid headers. + More...
+
+ +Public Member Functions | |
| + | InvalidHeaderException (string message) |
| + | InvalidHeaderException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidHeaderException (SerializationInfo info, StreamingContext context) |
Exception for invalid headers.
+ +Definition at line 11 of file InvalidHeaderException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.ClientData, including all inherited members.
+| ClientData(TcpClient client) (defined in MTSC.Server.ClientData) | MTSC.Server.ClientData | |
| LastMessageTime (defined in MTSC.Server.ClientData) | MTSC.Server.ClientData | |
| SslStream (defined in MTSC.Server.ClientData) | MTSC.Server.ClientData | |
| TcpClient (defined in MTSC.Server.ClientData) | MTSC.Server.ClientData | |
| ToBeRemoved (defined in MTSC.Server.ClientData) | MTSC.Server.ClientData |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.ClientModules.IHttpModule, including all inherited members.
+| HandleResponse(IHandler handler, HttpMessage response) | MTSC.Common.Http.ClientModules.IHttpModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Logging.DebugConsoleLogger, including all inherited members.
+| Log(string message) | MTSC.Logging.DebugConsoleLogger | |
| LogDebug(string message) | MTSC.Logging.DebugConsoleLogger |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.ServerModules.IHttpModule, including all inherited members.
+| HandleRequest(Server.Server server, HttpHandler handler, ClientData client, HttpMessage request, ref HttpMessage response) | MTSC.Common.Http.ServerModules.IHttpModule | |
| Tick(Server.Server server, HttpHandler handler) | MTSC.Common.Http.ServerModules.IHttpModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.ExceptionConsoleLogger, including all inherited members.
+| HandleException(Exception e) | MTSC.Exceptions.ExceptionConsoleLogger |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | ExceptionConsoleLogger |
| Logs the received exceptions to the console. More... | |
| class | ExceptionThrower |
| Throws all handled exceptions. More... | |
| interface | IExceptionHandler |
| Handler to be used for handling exception. More... | |
| class | InvalidFirstByteException |
| Exception in case of first invalid byte for websocket communication. More... | |
| class | InvalidHeaderException |
| Exception for invalid headers. More... | |
| class | InvalidHttpVersionException |
| Exception in case of Invalid HTTP Version. More... | |
| class | InvalidPostFormException |
| Exception for invalid post forms. More... | |
| class | InvalidRequestURIException |
| Exception cause by an invalid request URI. More... | |
| class | InvalidStatusCodeException |
| Exception for invalid response status code. More... | |
| class | InvalidWebsocketFormatException |
| class | MethodInvalidException |
| Invalid HTTP Method Exception. More... | |
| class | NoDataException |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.ServerModules.HelloWorldModule, including all inherited members.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | BroadcastModule |
| class | EchoModule |
| interface | IWebsocketModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidHttpVersionException, including all inherited members.
+| InvalidHttpVersionException() (defined in MTSC.Exceptions.InvalidHttpVersionException) | MTSC.Exceptions.InvalidHttpVersionException | |
| InvalidHttpVersionException(string message) (defined in MTSC.Exceptions.InvalidHttpVersionException) | MTSC.Exceptions.InvalidHttpVersionException | |
| InvalidHttpVersionException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidHttpVersionException) | MTSC.Exceptions.InvalidHttpVersionException | |
| InvalidHttpVersionException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidHttpVersionException) | MTSC.Exceptions.InvalidHttpVersionException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Client, including all inherited members.
+| AddExceptionHandler(IExceptionHandler handler) | MTSC.Client.Client | |
| AddHandler(IHandler handler) | MTSC.Client.Client | |
| AddLogger(ILogger logger) | MTSC.Client.Client | |
| Address (defined in MTSC.Client.Client) | MTSC.Client.Client | |
| CertificateValidationCallback | MTSC.Client.Client | |
| Client(bool useSsl=false) (defined in MTSC.Client.Client) | MTSC.Client.Client | |
| Connect() | MTSC.Client.Client | |
| ConnectAsync() | MTSC.Client.Client | |
| Connected (defined in MTSC.Client.Client) | MTSC.Client.Client | |
| Disconnect() | MTSC.Client.Client | |
| Log(string log) | MTSC.Client.Client | |
| LogDebug(string debugMessage) | MTSC.Client.Client | |
| Port (defined in MTSC.Client.Client) | MTSC.Client.Client | |
| QueueMessage(byte[] message) | MTSC.Client.Client | |
| SetPort(int port) | MTSC.Client.Client | |
| SetServerAddress(string address) | MTSC.Client.Client |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | HttpMessage |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Handler that encrypts the communication. + More...
+
+
++Public Member Functions | |
| EncryptionHandler (RSACryptoServiceProvider rsa) | |
| Creates an instance of EncryptionHandler. More... | |
Handler that encrypts the communication.
+ +Definition at line 13 of file EncryptionHandler.cs.
+| MTSC.Server.Handlers.EncryptionHandler.EncryptionHandler | +( | +RSACryptoServiceProvider | +rsa | ) | ++ |
Creates an instance of EncryptionHandler.
+| rsa | Symmetrical algorithm to be used for end-to-end encryption. |
| server | Server object managed by the handler. |
Definition at line 39 of file EncryptionHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Handlers.IHandler, including all inherited members.
+| Disconnected(Client client) | MTSC.Client.Handlers.IHandler | |
| HandleReceivedMessage(Client client, Message message) | MTSC.Client.Handlers.IHandler | |
| HandleSendMessage(Client client, ref Message message) | MTSC.Client.Handlers.IHandler | |
| InitializeConnection(Client client) | MTSC.Client.Handlers.IHandler | |
| PreHandleReceivedMessage(Client client, ref Message message) | MTSC.Client.Handlers.IHandler | |
| Tick(Client client) | MTSC.Client.Handlers.IHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Handlers.IHandler, including all inherited members.
+| ClientRemoved(Server server, ClientData client) | MTSC.Server.Handlers.IHandler | |
| HandleClient(Server server, ClientData client) | MTSC.Server.Handlers.IHandler | |
| HandleReceivedMessage(Server server, ClientData client, Message message) | MTSC.Server.Handlers.IHandler | |
| HandleSendMessage(Server server, ClientData client, ref Message message) | MTSC.Server.Handlers.IHandler | |
| PreHandleReceivedMessage(Server server, ClientData client, ref Message message) | MTSC.Server.Handlers.IHandler | |
| Tick(Server server) | MTSC.Server.Handlers.IHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception in case of Invalid HTTP Version. + More...
+
+ +Public Member Functions | |
| + | InvalidHttpVersionException (string message) |
| + | InvalidHttpVersionException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidHttpVersionException (SerializationInfo info, StreamingContext context) |
Exception in case of Invalid HTTP Version.
+ +Definition at line 11 of file InvalidHttpVersionException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Basic server class to handle TCP connections. + More...
++Public Member Functions | |
| Server () | |
| Creates an instance of server with default values. More... | |
| Server (int port) | |
| Creates an instance of server. More... | |
| Server (X509Certificate2 certificate, int port) | |
| Creates an instance of server. More... | |
| Server | SetPort (int port) |
| Sets the port to the specified value. More... | |
| Server | AddHandler (IHandler handler) |
| Adds a handler to the server. More... | |
| Server | AddLogger (ILogger logger) |
| Adds a logger to the server. More... | |
| Server | AddExceptionHandler (IExceptionHandler handler) |
| Adds an exception handler to the server. More... | |
| void | QueueMessage (ClientData target, byte[] message) |
| Queues a message to be sent. More... | |
| void | Log (string log) |
| Adds a message to be logged by the associated loggers. More... | |
| void | LogDebug (string debugMessage) |
| Adds a debug message to be logged by the associated loggers. More... | |
| void | Run () |
| Blocking method. Runs the server on the current thread. More... | |
| Task | RunAsync () |
| Runs the server async. More... | |
| void | Stop () |
| Stop the server. More... | |
+Properties | |
| int | Port [get, set] |
| Server port. More... | |
| bool | Running [get] |
| Returns the state of the server. More... | |
| List< ClientData > | Clients [get, set] |
| List of clients currently connected to the server. More... | |
| bool | ScaleUsage [get, set] |
| If set to true, the server will use an algorithm to lower or increase the CPU usage based on demands. More... | |
| int | TickRate [get, set] |
| How many times does the server proc per second. Cannot be set higher than 1000. This tickrate will be respected if either the ForceTickrate is set to true or ScaleUsage is set to true and the server is in power saving mode. More... | |
| bool | ForceTickrate [get, set] |
| If set to true, the server will respect the provided TickRate, regardless of current server load. More... | |
| MTSC.Server.Server.Server | +( | +) | ++ |
| MTSC.Server.Server.Server | +( | +int | +port | ) | ++ |
| MTSC.Server.Server.Server | +( | +X509Certificate2 | +certificate, | +
| + | + | int | +port | +
| + | ) | ++ |
| Server MTSC.Server.Server.AddExceptionHandler | +( | +IExceptionHandler | +handler | ) | ++ |
| void MTSC.Server.Server.Log | +( | +string | +log | ) | ++ |
| void MTSC.Server.Server.LogDebug | +( | +string | +debugMessage | ) | ++ |
| void MTSC.Server.Server.QueueMessage | +( | +ClientData | +target, | +
| + | + | byte [] | +message | +
| + | ) | ++ |
| void MTSC.Server.Server.Run | +( | +) | ++ |
| Task MTSC.Server.Server.RunAsync | +( | +) | ++ |
| Server MTSC.Server.Server.SetPort | +( | +int | +port | ) | ++ |
| void MTSC.Server.Server.Stop | +( | +) | ++ |
+
|
+ +getset | +
+
|
+ +getset | +
+
|
+ +getset | +
+
|
+ +get | +
+
|
+ +getset | +
+
|
+ +getset | +
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | ClientData |
| Structure containing client information. More... | |
| class | Server |
| Basic server class to handle TCP connections. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.IExceptionHandler, including all inherited members.
+| HandleException(Exception e) | MTSC.Exceptions.IExceptionHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidWebsocketFormatException, including all inherited members.
+| InvalidWebsocketFormatException() (defined in MTSC.Exceptions.InvalidWebsocketFormatException) | MTSC.Exceptions.InvalidWebsocketFormatException | |
| InvalidWebsocketFormatException(string message) (defined in MTSC.Exceptions.InvalidWebsocketFormatException) | MTSC.Exceptions.InvalidWebsocketFormatException | |
| InvalidWebsocketFormatException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidWebsocketFormatException) | MTSC.Exceptions.InvalidWebsocketFormatException | |
| InvalidWebsocketFormatException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidWebsocketFormatException) | MTSC.Exceptions.InvalidWebsocketFormatException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| +void | SendMessage (WebsocketHandler handler, ClientData client, WebsocketMessage message) |
Definition at line 10 of file EchoModule.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.MethodInvalidException, including all inherited members.
+| MethodInvalidException() (defined in MTSC.Exceptions.MethodInvalidException) | MTSC.Exceptions.MethodInvalidException | |
| MethodInvalidException(string message) (defined in MTSC.Exceptions.MethodInvalidException) | MTSC.Exceptions.MethodInvalidException | |
| MethodInvalidException(string message, Exception innerException) (defined in MTSC.Exceptions.MethodInvalidException) | MTSC.Exceptions.MethodInvalidException | |
| MethodInvalidException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.MethodInvalidException) | MTSC.Exceptions.MethodInvalidException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | BroadcastHandler |
| Broadcast handler. More... | |
| class | EncryptionHandler |
| Handler that encrypts the communication. More... | |
| class | HttpHandler |
| Handler for handling server http requests. More... | |
| interface | IHandler |
| Interface for communication handlers. More... | |
| class | WebsocketHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Structure containing client information. + More...
++Public Member Functions | |
| + | ClientData (TcpClient client) |
+Public Attributes | |
| +TcpClient | TcpClient |
| +DateTime | LastMessageTime |
| +bool | ToBeRemoved |
| +SslStream | SslStream |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Additional Inherited Members |
Definition at line 9 of file BroadcastModule.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Handler for handling client http communication. + More...
+
+
++Public Member Functions | |
| void | SendRequest (Client client, HttpMessage request) |
| Send a request to the server. More... | |
| HttpHandler | AddModule (IHttpModule httpModule) |
| Add a http module. More... | |
Handler for handling client http communication.
+ +Definition at line 13 of file HttpHandler.cs.
+| HttpHandler MTSC.Client.Handlers.HttpHandler.AddModule | +( | +IHttpModule | +httpModule | ) | ++ |
Add a http module.
+| httpModule | Module to be added. |
Definition at line 38 of file HttpHandler.cs.
+ +| void MTSC.Client.Handlers.HttpHandler.SendRequest | +( | +Client | +client, | +
| + | + | HttpMessage | +request | +
| + | ) | ++ |
Send a request to the server.
+| request | Request to be sent. |
Definition at line 29 of file HttpHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Public Member Functions | |
| bool | HandleResponse (IHandler handler, HttpMessage response) |
| Handle a response received from the server. More... | |
Definition at line 10 of file IHttpModule.cs.
+| bool MTSC.Common.Http.ClientModules.IHttpModule.HandleResponse | +( | +IHandler | +handler, | +
| + | + | HttpMessage | +response | +
| + | ) | ++ |
Handle a response received from the server.
+| handler | Handler that operates on the response. |
| response | Response message. |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Handlers.WebsocketHandler, including all inherited members.
+| AddModule(IWebsocketModule websocketModule) | MTSC.Client.Handlers.WebsocketHandler | |
| QueueMessage(WebsocketMessage message) | MTSC.Client.Handlers.WebsocketHandler | |
| WebsocketHandler() (defined in MTSC.Client.Handlers.WebsocketHandler) | MTSC.Client.Handlers.WebsocketHandler | |
| WebsocketURI (defined in MTSC.Client.Handlers.WebsocketHandler) | MTSC.Client.Handlers.WebsocketHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.NoDataException, including all inherited members.
+| NoDataException() (defined in MTSC.Exceptions.NoDataException) | MTSC.Exceptions.NoDataException | |
| NoDataException(string message) (defined in MTSC.Exceptions.NoDataException) | MTSC.Exceptions.NoDataException | |
| NoDataException(string message, Exception innerException) (defined in MTSC.Exceptions.NoDataException) | MTSC.Exceptions.NoDataException | |
| NoDataException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.NoDataException) | MTSC.Exceptions.NoDataException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidRequestURIException, including all inherited members.
+| InvalidRequestURIException() (defined in MTSC.Exceptions.InvalidRequestURIException) | MTSC.Exceptions.InvalidRequestURIException | |
| InvalidRequestURIException(string message) (defined in MTSC.Exceptions.InvalidRequestURIException) | MTSC.Exceptions.InvalidRequestURIException | |
| InvalidRequestURIException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidRequestURIException) | MTSC.Exceptions.InvalidRequestURIException | |
| InvalidRequestURIException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidRequestURIException) | MTSC.Exceptions.InvalidRequestURIException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Handler for handling server http requests. + More...
+
+
++Public Member Functions | |
| HttpHandler | AddHttpModule (IHttpModule module) |
| Add a http module onto the server. More... | |
| void | QueueResponse (ClientData client, HttpMessage response) |
| Send a response back to the client. More... | |
Handler for handling server http requests.
+ +Definition at line 15 of file HttpHandler.cs.
+| HttpHandler MTSC.Server.Handlers.HttpHandler.AddHttpModule | +( | +IHttpModule | +module | ) | ++ |
Add a http module onto the server.
+| module | Module to be added. |
Definition at line 33 of file HttpHandler.cs.
+ +| void MTSC.Server.Handlers.HttpHandler.QueueResponse | +( | +ClientData | +client, | +
| + | + | HttpMessage | +response | +
| + | ) | ++ |
Send a response back to the client.
+| response | Message containing the response. |
Definition at line 42 of file HttpHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Handlers.BroadcastHandler, including all inherited members.
+| Broadcast(Client client, string message) | MTSC.Client.Handlers.BroadcastHandler | |
| BroadcastHandler() | MTSC.Client.Handlers.BroadcastHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Logging.ConsoleLogger, including all inherited members.
+| Log(string message) | MTSC.Logging.ConsoleLogger | |
| LogDebug(string message) | MTSC.Logging.ConsoleLogger |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+ +Public Member Functions | |
| + | InvalidWebsocketFormatException (string message) |
| + | InvalidWebsocketFormatException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidWebsocketFormatException (SerializationInfo info, StreamingContext context) |
Definition at line 8 of file InvalidWebsocketFormatException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Additional Inherited Members |
Definition at line 9 of file HelloWorldModule.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception cause by an invalid request URI. + More...
+
+ +Public Member Functions | |
| + | InvalidRequestURIException (string message) |
| + | InvalidRequestURIException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidRequestURIException (SerializationInfo info, StreamingContext context) |
Exception cause by an invalid request URI.
+ +Definition at line 11 of file InvalidRequestURIException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Interface for loggers. + More...
+
+
++Public Member Functions | |
| bool | Log (string message) |
| Logs the received message. More... | |
| bool | LogDebug (string message) |
| Logs the received debug message. More... | |
Interface for loggers.
+ +Definition at line 10 of file ILogger.cs.
+| bool MTSC.Logging.ILogger.Log | +( | +string | +message | ) | ++ |
Logs the received message.
+| message | Message to be received. |
Implemented in MTSC.Logging.ConsoleLogger, and MTSC.Logging.DebugConsoleLogger.
+ +| bool MTSC.Logging.ILogger.LogDebug | +( | +string | +message | ) | ++ |
Logs the received debug message.
+| message | Debug message to be logged. |
Implemented in MTSC.Logging.ConsoleLogger, and MTSC.Logging.DebugConsoleLogger.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception in case of first invalid byte for websocket communication. + More...
+
+ +Public Member Functions | |
| + | InvalidFirstByteException (string message) |
| + | InvalidFirstByteException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidFirstByteException (SerializationInfo info, StreamingContext context) |
Exception in case of first invalid byte for websocket communication.
+ +Definition at line 11 of file InvalidFirstByteException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.ServerModules.EchoModule, including all inherited members.
+| SendMessage(WebsocketHandler handler, ClientData client, WebsocketMessage message) (defined in MTSC.Common.WebSockets.ServerModules.EchoModule) | MTSC.Common.WebSockets.ServerModules.EchoModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | CommunicationPrimitives |
| class | HelperFunctions |
| struct | Message |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| + | FileServerModule (string rootFolder="src") |
Definition at line 11 of file FileServerModule.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Handler to be used for handling exception. + More...
+
+
++Public Member Functions | |
| bool | HandleException (Exception e) |
| Handles exceptions. More... | |
Handler to be used for handling exception.
+ +Definition at line 10 of file IExceptionHandler.cs.
+| bool MTSC.Exceptions.IExceptionHandler.HandleException | +( | +Exception | +e | ) | ++ |
Handles exceptions.
+| e | Exception to be handled. |
Implemented in MTSC.Exceptions.ExceptionConsoleLogger, and MTSC.Exceptions.ExceptionThrower.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.ServerModules.Http404Module, including all inherited members.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Class containing the bytes of a websocket received message. + More...
++Public Types | |
| enum | Opcodes { + Text = 1, +Binary = 2, +Close = 8, +Ping = 9, + + Pong = 10 + + } |
+Public Member Functions | |
| WebsocketMessage (byte[] messageBytes) | |
| Creates a new instance of websocket message containing the given message. More... | |
| WebsocketMessage () | |
| Creates a new instance of websocket message. More... | |
| byte [] | GetMessageBytes () |
| Get the packed message bytes. More... | |
+Properties | |
| bool? | FIN [get, set] |
| FIN bit. More... | |
| Opcodes | Opcode [get, set] |
| Frame Opcode More... | |
| bool? | Masked [get, set] |
| Mask bit. More... | |
| ulong | MessageLength [get, set] |
| Length of message. More... | |
| byte [] | Mask [get, set] |
| Mask of the message. More... | |
| byte [] | Data [get, set] |
| Data of the message. More... | |
Class containing the bytes of a websocket received message.
+ +Definition at line 11 of file WebsocketMessage.cs.
+| MTSC.Common.WebSockets.WebsocketMessage.WebsocketMessage | +( | +byte [] | +messageBytes | ) | ++ |
Creates a new instance of websocket message containing the given message.
+| messageBytes | Byte array containing the message bytes. |
Definition at line 133 of file WebsocketMessage.cs.
+ +| MTSC.Common.WebSockets.WebsocketMessage.WebsocketMessage | +( | +) | ++ |
Creates a new instance of websocket message.
+ +Definition at line 180 of file WebsocketMessage.cs.
+ +| byte [] MTSC.Common.WebSockets.WebsocketMessage.GetMessageBytes | +( | +) | ++ |
Get the packed message bytes.
+Definition at line 191 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
Data of the message.
+ +Definition at line 120 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
FIN bit.
+ +Definition at line 28 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
Mask of the message.
+ +Definition at line 115 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
Mask bit.
+ +Definition at line 38 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
Length of message.
+ +Definition at line 43 of file WebsocketMessage.cs.
+ +
+
|
+ +getset | +
Frame Opcode
+Gets and sets the 4 lower bits of the first byte.
+ +Definition at line 33 of file WebsocketMessage.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Interface for Http modules used by the server http handler. + More...
+
+
++Public Member Functions | |
| bool | HandleRequest (Server.Server server, HttpHandler handler, ClientData client, HttpMessage request, ref HttpMessage response) |
| Handle the received request. More... | |
| void | Tick (Server.Server server, HttpHandler handler) |
| Perform periodic operations. More... | |
Interface for Http modules used by the server http handler.
+ +Definition at line 13 of file IHttpModule.cs.
+| bool MTSC.Common.Http.ServerModules.IHttpModule.HandleRequest | +( | +Server.Server | +server, | +
| + | + | HttpHandler | +handler, | +
| + | + | ClientData | +client, | +
| + | + | HttpMessage | +request, | +
| + | + | ref HttpMessage | +response | +
| + | ) | ++ |
Handle the received request.
+| senderHandler | Handler that handled the request. |
| client | Client data. |
| request | Request message. |
| void MTSC.Common.Http.ServerModules.IHttpModule.Tick | +( | +Server.Server | +server, | +
| + | + | HttpHandler | +handler | +
| + | ) | ++ |
Perform periodic operations.
+| handler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Handlers.EncryptionHandler, including all inherited members.
+| EncryptionHandler(RSACryptoServiceProvider rsa) | MTSC.Server.Handlers.EncryptionHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Server, including all inherited members.
+| AddExceptionHandler(IExceptionHandler handler) | MTSC.Server.Server | |
| AddHandler(IHandler handler) | MTSC.Server.Server | |
| AddLogger(ILogger logger) | MTSC.Server.Server | |
| Clients | MTSC.Server.Server | |
| ForceTickrate | MTSC.Server.Server | |
| Log(string log) | MTSC.Server.Server | |
| LogDebug(string debugMessage) | MTSC.Server.Server | |
| Port | MTSC.Server.Server | |
| QueueMessage(ClientData target, byte[] message) | MTSC.Server.Server | |
| Run() | MTSC.Server.Server | |
| RunAsync() | MTSC.Server.Server | |
| Running | MTSC.Server.Server | |
| ScaleUsage | MTSC.Server.Server | |
| Server() | MTSC.Server.Server | |
| Server(int port) | MTSC.Server.Server | |
| Server(X509Certificate2 certificate, int port) | MTSC.Server.Server | |
| SetPort(int port) | MTSC.Server.Server | |
| Stop() | MTSC.Server.Server | |
| TickRate | MTSC.Server.Server |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| void | ConnectionInitialized (Server.Server server, WebsocketHandler handler, ClientData client) |
| Called when a connection has been initialized. More... | |
| bool | HandleReceivedMessage (Server.Server server, WebsocketHandler handler, ClientData client, WebsocketMessage receivedMessage) |
| Handle a received message. More... | |
| void | ConnectionClosed (Server.Server server, WebsocketHandler handler, ClientData client) |
| Called when a connection has been closed. More... | |
Definition at line 9 of file IWebsocketModule.cs.
+| void MTSC.Common.WebSockets.ServerModules.IWebsocketModule.ConnectionClosed | +( | +Server.Server | +server, | +
| + | + | WebsocketHandler | +handler, | +
| + | + | ClientData | +client | +
| + | ) | ++ |
| void MTSC.Common.WebSockets.ServerModules.IWebsocketModule.ConnectionInitialized | +( | +Server.Server | +server, | +
| + | + | WebsocketHandler | +handler, | +
| + | + | ClientData | +client | +
| + | ) | ++ |
| bool MTSC.Common.WebSockets.ServerModules.IWebsocketModule.HandleReceivedMessage | +( | +Server.Server | +server, | +
| + | + | WebsocketHandler | +handler, | +
| + | + | ClientData | +client, | +
| + | + | WebsocketMessage | +receivedMessage | +
| + | ) | ++ |
Handle a received message.
+| handler | Handler that currently processes the message. |
| messageBytes | Bytes of the message. |
| client | Client data. |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception for invalid post forms. + More...
+
+ +Public Member Functions | |
| + | InvalidPostFormException (string message) |
| + | InvalidPostFormException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidPostFormException (SerializationInfo info, StreamingContext context) |
Exception for invalid post forms.
+ +Definition at line 11 of file InvalidPostFormException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.ServerModules.IWebsocketModule, including all inherited members.
+| ConnectionClosed(Server.Server server, WebsocketHandler handler, ClientData client) | MTSC.Common.WebSockets.ServerModules.IWebsocketModule | |
| ConnectionInitialized(Server.Server server, WebsocketHandler handler, ClientData client) | MTSC.Common.WebSockets.ServerModules.IWebsocketModule | |
| HandleReceivedMessage(Server.Server server, WebsocketHandler handler, ClientData client, WebsocketMessage receivedMessage) | MTSC.Common.WebSockets.ServerModules.IWebsocketModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+ +Public Member Functions | |
| + | NoDataException (string message) |
| + | NoDataException (string message, Exception innerException) |
+Protected Member Functions | |
| + | NoDataException (SerializationInfo info, StreamingContext context) |
Definition at line 8 of file NoDataException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Interface for communication handlers. + More...
+
+
++Public Member Functions | |
| bool | HandleClient (Server server, ClientData client) |
| Handles a new client. More... | |
| bool | HandleSendMessage (Server server, ClientData client, ref Message message) |
| Handles a message before sending. More... | |
| bool | PreHandleReceivedMessage (Server server, ClientData client, ref Message message) |
| Called before the message handling. Perform here any processing of the message. More... | |
| bool | HandleReceivedMessage (Server server, ClientData client, Message message) |
| Handles the received message. More... | |
| void | ClientRemoved (Server server, ClientData client) |
| Handles the removal of a client from the server. More... | |
| void | Tick (Server server) |
| Method performs regular operations onto the server. More... | |
Interface for communication handlers.
+ +Definition at line 11 of file IHandler.cs.
+| void MTSC.Server.Handlers.IHandler.ClientRemoved | +( | +Server | +server, | +
| + | + | ClientData | +client | +
| + | ) | ++ |
| bool MTSC.Server.Handlers.IHandler.HandleClient | +( | +Server | +server, | +
| + | + | ClientData | +client | +
| + | ) | ++ |
| bool MTSC.Server.Handlers.IHandler.HandleReceivedMessage | +( | +Server | +server, | +
| + | + | ClientData | +client, | +
| + | + | Message | +message | +
| + | ) | ++ |
| bool MTSC.Server.Handlers.IHandler.HandleSendMessage | +( | +Server | +server, | +
| + | + | ClientData | +client, | +
| + | + | ref Message | +message | +
| + | ) | ++ |
| 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.
+| client | Client structure. |
| message | Message to be preprocessed. |
| server | Server calling the handler. |
| void MTSC.Server.Handlers.IHandler.Tick | +( | +Server | +server | ) | ++ |
Method performs regular operations onto the server.
+| server | Server calling the handler. |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | BroadcastHandler |
| class | EncryptionHandler |
| class | HttpHandler |
| Handler for handling client http communication. More... | |
| interface | IHandler |
| Handler interface for client communication. More... | |
| class | WebsocketHandler |
| Handler implementing websocket protocol. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.ServerModules.FileServerModule, including all inherited members.
+| FileServerModule(string rootFolder="src") (defined in MTSC.Common.Http.ServerModules.FileServerModule) | MTSC.Common.Http.ServerModules.FileServerModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Handlers.EncryptionHandler, including all inherited members.
+| EncryptionHandler() | MTSC.Client.Handlers.EncryptionHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| interface | IHttpModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Client.Handlers.HttpHandler, including all inherited members.
+| AddModule(IHttpModule httpModule) | MTSC.Client.Handlers.HttpHandler | |
| HttpHandler() (defined in MTSC.Client.Handlers.HttpHandler) | MTSC.Client.Handlers.HttpHandler | |
| SendRequest(Client client, HttpMessage request) | MTSC.Client.Handlers.HttpHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Types | |
| enum | SocketState { Initial, +Handshaking, +Established, +Closed + } |
+Public Member Functions | |
| WebsocketHandler | AddWebsocketHandler (IWebsocketModule module) |
| Add a webSocket module onto the server. More... | |
| void | QueueMessage (ClientData client, byte[] message) |
| Send a message to the client. More... | |
| void | QueueMessage (ClientData client, WebsocketMessage message) |
| Send a message to the client. More... | |
| void | CloseConnection (ClientData client) |
| Signals that the connetion is closing. More... | |
+Public Attributes | |
| +ConcurrentDictionary< ClientData, SocketState > | webSockets = new ConcurrentDictionary<ClientData, SocketState>() |
Definition at line 12 of file WebsocketHandler.cs.
+| WebsocketHandler MTSC.Server.Handlers.WebsocketHandler.AddWebsocketHandler | +( | +IWebsocketModule | +module | ) | ++ |
Add a webSocket module onto the server.
+| module | Module to be added. |
Definition at line 39 of file WebsocketHandler.cs.
+ +| void MTSC.Server.Handlers.WebsocketHandler.CloseConnection | +( | +ClientData | +client | ) | ++ |
Signals that the connetion is closing.
+| client | Client to be disconnected. |
Definition at line 70 of file WebsocketHandler.cs.
+ +| void MTSC.Server.Handlers.WebsocketHandler.QueueMessage | +( | +ClientData | +client, | +
| + | + | byte [] | +message | +
| + | ) | ++ |
Send a message to the client.
+| message | Message to be sent to client. |
Definition at line 48 of file WebsocketHandler.cs.
+ +| void MTSC.Server.Handlers.WebsocketHandler.QueueMessage | +( | +ClientData | +client, | +
| + | + | WebsocketMessage | +message | +
| + | ) | ++ |
Send a message to the client.
+ + +Definition at line 62 of file WebsocketHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| bool | Log (string message) |
| Ignores simple logging messages. More... | |
| bool | LogDebug (string message) |
| Outputs the debug message to console. More... | |
Definition at line 7 of file DebugConsoleLogger.cs.
+| bool MTSC.Logging.DebugConsoleLogger.Log | +( | +string | +message | ) | ++ |
Ignores simple logging messages.
+| message |
Implements MTSC.Logging.ILogger.
+ +Definition at line 14 of file DebugConsoleLogger.cs.
+ +| bool MTSC.Logging.DebugConsoleLogger.LogDebug | +( | +string | +message | ) | ++ |
Outputs the debug message to console.
+| message | Message to be output. |
Implements MTSC.Logging.ILogger.
+ +Definition at line 23 of file DebugConsoleLogger.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.Http.HttpMessage, including all inherited members.
+| AddEntityHeaders(EntityHeadersEnum entityHeader, string value) | MTSC.Common.Http.HttpMessage | |
| AddGeneralHeader(GeneralHeadersEnum header, string value) | MTSC.Common.Http.HttpMessage | |
| AddRequestHeader(RequestHeadersEnum requestHeader, string value) | MTSC.Common.Http.HttpMessage | |
| AddResponseHeader(ResponseHeadersEnum responseHeader, string value) | MTSC.Common.Http.HttpMessage | |
| Body (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| ContainsHeader(ResponseHeadersEnum header) | MTSC.Common.Http.HttpMessage | |
| ContainsHeader(RequestHeadersEnum header) | MTSC.Common.Http.HttpMessage | |
| ContainsHeader(GeneralHeadersEnum header) | MTSC.Common.Http.HttpMessage | |
| ContainsHeader(string header) | MTSC.Common.Http.HttpMessage | |
| EntityHeadersEnum enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| GeneralHeadersEnum enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| GetPostForm() | MTSC.Common.Http.HttpMessage | |
| GetRequest() | MTSC.Common.Http.HttpMessage | |
| GetResponse(bool includeContentLengthHeader) | MTSC.Common.Http.HttpMessage | |
| HttpMessage() (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| Method (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| MethodEnum enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| ParseRequest(byte[] requestBytes) | MTSC.Common.Http.HttpMessage | |
| ParseResponse(byte[] responseBytes) | MTSC.Common.Http.HttpMessage | |
| RequestHeadersEnum enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| RequestQuery (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| RequestURI (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| ResponseHeadersEnum enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| StatusCode (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| StatusCodes enum name (defined in MTSC.Common.Http.HttpMessage) | MTSC.Common.Http.HttpMessage | |
| this[EntityHeadersEnum headerKey] | MTSC.Common.Http.HttpMessage | |
| this[GeneralHeadersEnum headerKey] | MTSC.Common.Http.HttpMessage | |
| this[RequestHeadersEnum headerKey] | MTSC.Common.Http.HttpMessage | |
| this[ResponseHeadersEnum headerKey] | MTSC.Common.Http.HttpMessage | |
| this[string headerKey] | MTSC.Common.Http.HttpMessage |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidStatusCodeException, including all inherited members.
+| InvalidStatusCodeException() (defined in MTSC.Exceptions.InvalidStatusCodeException) | MTSC.Exceptions.InvalidStatusCodeException | |
| InvalidStatusCodeException(string message) (defined in MTSC.Exceptions.InvalidStatusCodeException) | MTSC.Exceptions.InvalidStatusCodeException | |
| InvalidStatusCodeException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidStatusCodeException) | MTSC.Exceptions.InvalidStatusCodeException | |
| InvalidStatusCodeException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidStatusCodeException) | MTSC.Exceptions.InvalidStatusCodeException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | ConsoleLogger |
| Basic logger that outputs the log messages to the console. More... | |
| class | DebugConsoleLogger |
| interface | ILogger |
| Interface for loggers. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidHeaderException, including all inherited members.
+| InvalidHeaderException() (defined in MTSC.Exceptions.InvalidHeaderException) | MTSC.Exceptions.InvalidHeaderException | |
| InvalidHeaderException(string message) (defined in MTSC.Exceptions.InvalidHeaderException) | MTSC.Exceptions.InvalidHeaderException | |
| InvalidHeaderException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidHeaderException) | MTSC.Exceptions.InvalidHeaderException | |
| InvalidHeaderException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidHeaderException) | MTSC.Exceptions.InvalidHeaderException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Message, including all inherited members.
+| Message(uint messageLength, byte[] messageBytes) (defined in MTSC.Message) | MTSC.Message | |
| MessageBytes (defined in MTSC.Message) | MTSC.Message | |
| MessageLength (defined in MTSC.Message) | MTSC.Message |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Broadcast handler. + More...
+
+
++Additional Inherited Members |
Broadcast handler.
+ +Definition at line 10 of file BroadcastHandler.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.ServerModules.BroadcastModule, including all inherited members.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| BroadcastHandler () | |
| Creates a new instance of BroadcastHandler. More... | |
| void | Broadcast (Client client, string message) |
| Broadcast a message to all other clients connected to the server. More... | |
Definition at line 8 of file BroadcastHandler.cs.
+| MTSC.Client.Handlers.BroadcastHandler.BroadcastHandler | +( | +) | ++ |
Creates a new instance of BroadcastHandler.
+ +Definition at line 14 of file BroadcastHandler.cs.
+ +| void MTSC.Client.Handlers.BroadcastHandler.Broadcast | +( | +Client | +client, | +
| + | + | string | +message | +
| + | ) | ++ |
Broadcast a message to all other clients connected to the server.
+| message | Message to be broadcasted. |
| client | Client object containing the communication channel. |
Definition at line 24 of file BroadcastHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Base class for TCP Client. + More...
++Public Member Functions | |
| + | Client (bool useSsl=false) |
| void | QueueMessage (byte[] message) |
| Add a message to the message queue. More... | |
| void | Log (string log) |
| Logs the message onto the associated loggers. More... | |
| void | LogDebug (string debugMessage) |
| Logs the debug message onto the associated loggers. More... | |
| Client | SetServerAddress (string address) |
| Sets the server address. More... | |
| Client | SetPort (int port) |
| Sets the server port. More... | |
| Client | AddHandler (IHandler handler) |
| Adds a handler onto the client. More... | |
| Client | AddExceptionHandler (IExceptionHandler handler) |
| Adds an exception handler to the client. More... | |
| Client | AddLogger (ILogger logger) |
| Adds a logger onto the client. More... | |
| bool | Connect () |
| Attemps to connect to the specified server. More... | |
| Task< bool > | ConnectAsync () |
| Attempts to connect to the specified server. More... | |
| void | Disconnect () |
| Disconnects from the server. More... | |
+Properties | |
| +bool | Connected [get] |
| +string | Address [get] |
| +int | Port [get] |
| RemoteCertificateValidationCallback | CertificateValidationCallback [get, set] |
| Callback function used to determine if the remote certificate is valid. More... | |
| Client MTSC.Client.Client.AddExceptionHandler | +( | +IExceptionHandler | +handler | ) | ++ |
| bool MTSC.Client.Client.Connect | +( | +) | ++ |
| Task<bool> MTSC.Client.Client.ConnectAsync | +( | +) | ++ |
| void MTSC.Client.Client.Disconnect | +( | +) | ++ |
| void MTSC.Client.Client.Log | +( | +string | +log | ) | ++ |
| void MTSC.Client.Client.LogDebug | +( | +string | +debugMessage | ) | ++ |
| void MTSC.Client.Client.QueueMessage | +( | +byte [] | +message | ) | ++ |
| Client MTSC.Client.Client.SetPort | +( | +int | +port | ) | ++ |
| Client MTSC.Client.Client.SetServerAddress | +( | +string | +address | ) | ++ |
+
|
+ +getset | +
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Throws all handled exceptions. + More...
+
+
++Public Member Functions | |
| bool | HandleException (Exception e) |
| Handles exceptions. More... | |
Throws all handled exceptions.
+ +Definition at line 10 of file ExceptionThrower.cs.
+| bool MTSC.Exceptions.ExceptionThrower.HandleException | +( | +Exception | +e | ) | ++ |
Handles exceptions.
+| e | Exception to be handled. |
Implements MTSC.Exceptions.IExceptionHandler.
+ +Definition at line 12 of file ExceptionThrower.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.ClientModules.IWebsocketModule, including all inherited members.
+| ConnectionClosed(Client.Client client, WebsocketHandler handler) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| ConnectionInitialized(Client.Client client, WebsocketHandler handler) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| HandleReceivedMessage(Client.Client client, WebsocketHandler handler, WebsocketMessage messageBytes) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Handlers.HttpHandler, including all inherited members.
+| AddHttpModule(IHttpModule module) | MTSC.Server.Handlers.HttpHandler | |
| HttpHandler() (defined in MTSC.Server.Handlers.HttpHandler) | MTSC.Server.Handlers.HttpHandler | |
| QueueResponse(ClientData client, HttpMessage response) | MTSC.Server.Handlers.HttpHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.ClientModules.ChatModule, including all inherited members.
+| MTSC::Common::WebSockets::ClientModules::IWebsocketModule.ConnectionClosed(Client.Client client, WebsocketHandler handler) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| MTSC::Common::WebSockets::ClientModules::IWebsocketModule.ConnectionInitialized(Client.Client client, WebsocketHandler handler) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| MTSC::Common::WebSockets::ClientModules::IWebsocketModule.HandleReceivedMessage(Client.Client client, WebsocketHandler handler, WebsocketMessage messageBytes) | MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| SendMessage(WebsocketHandler websocketHandler, string message) (defined in MTSC.Common.WebSockets.ClientModules.ChatModule) | MTSC.Common.WebSockets.ClientModules.ChatModule |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Simple module that returns status code 404. + More...
+
+
++Additional Inherited Members |
Simple module that returns status code 404.
+ +Definition at line 12 of file Http404Module.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Public Member Functions | |
| + | Message (uint messageLength, byte[] messageBytes) |
+Properties | |
| +uint | MessageLength [get] |
| +byte [] | MessageBytes [get] |
Definition at line 7 of file Message.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Interface for websocket modules. + More...
+
+
++Public Member Functions | |
| void | ConnectionInitialized (Client.Client client, WebsocketHandler handler) |
| Called when a new websocket connection has been initialized. More... | |
| bool | HandleReceivedMessage (Client.Client client, WebsocketHandler handler, WebsocketMessage messageBytes) |
| Handle received message. More... | |
| void | ConnectionClosed (Client.Client client, WebsocketHandler handler) |
| Called when an existing websocket connection is being closed. More... | |
Interface for websocket modules.
+ +Definition at line 11 of file IWebsocketModule.cs.
+| void MTSC.Common.WebSockets.ClientModules.IWebsocketModule.ConnectionClosed | +( | +Client.Client | +client, | +
| + | + | WebsocketHandler | +handler | +
| + | ) | ++ |
Called when an existing websocket connection is being closed.
+| client | Client object. |
| handler | Handler that closes the connection. |
| void MTSC.Common.WebSockets.ClientModules.IWebsocketModule.ConnectionInitialized | +( | +Client.Client | +client, | +
| + | + | WebsocketHandler | +handler | +
| + | ) | ++ |
Called when a new websocket connection has been initialized.
+| client | Client object. |
| handler | Handler that performed the initialization. |
| bool MTSC.Common.WebSockets.ClientModules.IWebsocketModule.HandleReceivedMessage | +( | +Client.Client | +client, | +
| + | + | WebsocketHandler | +handler, | +
| + | + | WebsocketMessage | +messageBytes | +
| + | ) | ++ |
Handle received message.
+| client | Client object. |
| handler | Handler currently processing the message. |
| messageBytes | Array containing the message. |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidFirstByteException, including all inherited members.
+| InvalidFirstByteException() (defined in MTSC.Exceptions.InvalidFirstByteException) | MTSC.Exceptions.InvalidFirstByteException | |
| InvalidFirstByteException(string message) (defined in MTSC.Exceptions.InvalidFirstByteException) | MTSC.Exceptions.InvalidFirstByteException | |
| InvalidFirstByteException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidFirstByteException) | MTSC.Exceptions.InvalidFirstByteException | |
| InvalidFirstByteException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidFirstByteException) | MTSC.Exceptions.InvalidFirstByteException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.InvalidPostFormException, including all inherited members.
+| InvalidPostFormException() (defined in MTSC.Exceptions.InvalidPostFormException) | MTSC.Exceptions.InvalidPostFormException | |
| InvalidPostFormException(string message) (defined in MTSC.Exceptions.InvalidPostFormException) | MTSC.Exceptions.InvalidPostFormException | |
| InvalidPostFormException(string message, Exception innerException) (defined in MTSC.Exceptions.InvalidPostFormException) | MTSC.Exceptions.InvalidPostFormException | |
| InvalidPostFormException(SerializationInfo info, StreamingContext context) (defined in MTSC.Exceptions.InvalidPostFormException) | MTSC.Exceptions.InvalidPostFormException | protected |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| EncryptionHandler () | |
| Creates an instance of EncryptionHandler. More... | |
Definition at line 11 of file EncryptionHandler.cs.
+| MTSC.Client.Handlers.EncryptionHandler.EncryptionHandler | +( | +) | ++ |
Creates an instance of EncryptionHandler.
+| client | Client object that this handler manages. |
Definition at line 29 of file EncryptionHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Exception for invalid response status code. + More...
+
+ +Public Member Functions | |
| + | InvalidStatusCodeException (string message) |
| + | InvalidStatusCodeException (string message, Exception innerException) |
+Protected Member Functions | |
| + | InvalidStatusCodeException (SerializationInfo info, StreamingContext context) |
Exception for invalid response status code.
+ +Definition at line 11 of file InvalidStatusCodeException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Handlers.WebsocketHandler, including all inherited members.
+| AddWebsocketHandler(IWebsocketModule module) | MTSC.Server.Handlers.WebsocketHandler | |
| CloseConnection(ClientData client) | MTSC.Server.Handlers.WebsocketHandler | |
| QueueMessage(ClientData client, byte[] message) | MTSC.Server.Handlers.WebsocketHandler | |
| QueueMessage(ClientData client, WebsocketMessage message) | MTSC.Server.Handlers.WebsocketHandler | |
| SocketState enum name (defined in MTSC.Server.Handlers.WebsocketHandler) | MTSC.Server.Handlers.WebsocketHandler | |
| webSockets (defined in MTSC.Server.Handlers.WebsocketHandler) | MTSC.Server.Handlers.WebsocketHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | WebsocketMessage |
| Class containing the bytes of a websocket received message. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Invalid HTTP Method Exception. + More...
+
+ +Public Member Functions | |
| + | MethodInvalidException (string message) |
| + | MethodInvalidException (string message, Exception innerException) |
+Protected Member Functions | |
| + | MethodInvalidException (SerializationInfo info, StreamingContext context) |
Invalid HTTP Method Exception.
+ +Definition at line 11 of file MethodInvalidException.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Common.WebSockets.WebsocketMessage, including all inherited members.
+| Data | MTSC.Common.WebSockets.WebsocketMessage | |
| FIN | MTSC.Common.WebSockets.WebsocketMessage | |
| GetMessageBytes() | MTSC.Common.WebSockets.WebsocketMessage | |
| Mask | MTSC.Common.WebSockets.WebsocketMessage | |
| Masked | MTSC.Common.WebSockets.WebsocketMessage | |
| MessageLength | MTSC.Common.WebSockets.WebsocketMessage | |
| Opcode | MTSC.Common.WebSockets.WebsocketMessage | |
| Opcodes enum name (defined in MTSC.Common.WebSockets.WebsocketMessage) | MTSC.Common.WebSockets.WebsocketMessage | |
| WebsocketMessage(byte[] messageBytes) | MTSC.Common.WebSockets.WebsocketMessage | |
| WebsocketMessage() | MTSC.Common.WebSockets.WebsocketMessage |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Basic logger that outputs the log messages to the console. + More...
+
+
++Public Member Functions | |
| bool | Log (string message) |
| Outputs the message to the console. More... | |
| bool | LogDebug (string message) |
| Ignores debug messages. More... | |
Basic logger that outputs the log messages to the console.
+ +Definition at line 10 of file ConsoleLogger.cs.
+| bool MTSC.Logging.ConsoleLogger.Log | +( | +string | +message | ) | ++ |
Outputs the message to the console.
+| message |
Implements MTSC.Logging.ILogger.
+ +Definition at line 16 of file ConsoleLogger.cs.
+ +| bool MTSC.Logging.ConsoleLogger.LogDebug | +( | +string | +message | ) | ++ |
Ignores debug messages.
+| message |
Implements MTSC.Logging.ILogger.
+ +Definition at line 26 of file ConsoleLogger.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | ChatModule |
| interface | IWebsocketModule |
| Interface for websocket modules. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Handler implementing websocket protocol. + More...
+
+
++Public Member Functions | |
| WebsocketHandler | AddModule (IWebsocketModule websocketModule) |
| Add a module to the websocket handler. More... | |
| void | QueueMessage (WebsocketMessage message) |
| Add a message to the queue to be sent. More... | |
+Properties | |
| +string | WebsocketURI [get, set] |
Handler implementing websocket protocol.
+ +Definition at line 14 of file WebsocketHandler.cs.
+| WebsocketHandler MTSC.Client.Handlers.WebsocketHandler.AddModule | +( | +IWebsocketModule | +websocketModule | ) | ++ |
Add a module to the websocket handler.
+| websocketModule | Module to be added. |
Definition at line 51 of file WebsocketHandler.cs.
+ +| void MTSC.Client.Handlers.WebsocketHandler.QueueMessage | +( | +WebsocketMessage | +message | ) | ++ |
Add a message to the queue to be sent.
+| message | Message to be sent. |
Definition at line 60 of file WebsocketHandler.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Logging.ILogger, including all inherited members.
+| Log(string message) | MTSC.Logging.ILogger | |
| LogDebug(string message) | MTSC.Logging.ILogger |
![]() |
+
+ MTSC
+ 1.0.0
+
+ 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. |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Exceptions.ExceptionThrower, including all inherited members.
+| HandleException(Exception e) | MTSC.Exceptions.ExceptionThrower |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
Logs the received exceptions to the console. + More...
+
+
++Public Member Functions | |
| bool | HandleException (Exception e) |
| Handles exceptions. More... | |
Logs the received exceptions to the console.
+ +Definition at line 10 of file ExceptionConsoleLogger.cs.
+| bool MTSC.Exceptions.ExceptionConsoleLogger.HandleException | +( | +Exception | +e | ) | ++ |
Handles exceptions.
+| e | Exception to be handled. |
Implements MTSC.Exceptions.IExceptionHandler.
+ +Definition at line 12 of file ExceptionConsoleLogger.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This is the complete list of members for MTSC.Server.Handlers.BroadcastHandler, including all inherited members.
+| BroadcastHandler() (defined in MTSC.Server.Handlers.BroadcastHandler) | MTSC.Server.Handlers.BroadcastHandler |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Classes | |
| class | FileServerModule |
| class | HelloWorldModule |
| class | Http404Module |
| Simple module that returns status code 404. More... | |
| interface | IHttpModule |
| Interface for Http modules used by the server http handler. More... | |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+
++Public Member Functions | |
| +void | SendMessage (WebsocketHandler websocketHandler, string message) |
Public Member Functions inherited from MTSC.Common.WebSockets.ClientModules.IWebsocketModule | |
| void | ConnectionInitialized (Client.Client client, WebsocketHandler handler) |
| Called when a new websocket connection has been initialized. More... | |
| bool | HandleReceivedMessage (Client.Client client, WebsocketHandler handler, WebsocketMessage messageBytes) |
| Handle received message. More... | |
| void | ConnectionClosed (Client.Client client, WebsocketHandler handler) |
| Called when an existing websocket connection is being closed. More... | |
Definition at line 10 of file ChatModule.cs.
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+Public Types | |
| enum | StatusCodes { + Continue = 100, +SwitchingProtocols = 101, +OK = 200, +Created = 201, + + Accepted = 202, +NonAuthoritativeInformation = 203, +NoContent = 204, +ResetContent = 205, + + PartialContent = 206, +MultipleChoices = 300, +MovedPermanently = 301, +Found = 302, + + SeeOther = 303, +NotModified = 304, +UseProxy = 305, +TemporaryRedirect = 307, + + BadRequest = 400, +Unauthorized = 401, +PaymentRequired = 402, +Forbidden = 403, + + NotFound = 404, +MethodNotAllowed = 405, +NotAcceptable = 406, +ProxyAuthenticationRequired = 407, + + RequestTimeout = 408, +Conflict = 409, +Gone = 410, +LengthRequired = 411, + + PreconditionFailed = 412, +RequestEntityTooLarge = 413, +RequestURITooLarge = 414, +UnsupportedMediaType = 415, + + RequestRangeNotSatisfiable = 416, +ExpectationFailed = 417, +InternalServerError = 500, +NotImplemented = 501, + + BadGateway = 502, +ServiceUnavailable = 503, +GatewayTimeout = 504, +HTTPVersionNotSupported = 505 + + } |
| enum | MethodEnum { + Options = 0, +Get = 1, +Head = 2, +Post = 3, + + Put = 4, +Delete = 5, +Trace = 6, +Connect = 7, + + ExtensionMethod = 8 + + } |
| enum | GeneralHeadersEnum { + CacheControl = 0, +Connection = 1, +Date = 2, +Pragma = 3, + + Trailer = 4, +TransferEncoding = 5, +Upgrade = 6, +Via = 7, + + Warning = 8 + + } |
| enum | RequestHeadersEnum { + Accept = 0, +AcceptCharset = 1, +AcceptEncoding = 2, +AcceptLanguage = 3, + + Authorization = 4, +Expect = 5, +From = 6, +Host = 7, + + IfMatch = 8, +IfModifiedSince = 9, +IfNoneMatch = 10, +IfRange = 11, + + IfUnmodifiedSince = 12, +MaxForwards = 13, +ProxyAuthorization = 14, +Range = 15, + + Referer = 16, +TE = 17, +UserAgent = 18 + + } |
| enum | ResponseHeadersEnum { + AcceptRanges = 0, +Age = 1, +ETag = 2, +Location = 3, + + ProxyAuthentication = 4, +RetryAfter = 5, +Server = 6, +Vary = 7, + + WWWAuthenticate = 8 + + } |
| enum | EntityHeadersEnum { + Allow = 0, +ContentEncoding = 1, +ContentLanguage = 2, +ContentLength = 3, + + ContentLocation = 4, +ContentMD5 = 5, +ContentRange = 6, +ContentType = 7, + + Expired = 8, +LastModified = 9 + + } |
+Public Member Functions | |
| void | AddGeneralHeader (GeneralHeadersEnum header, string value) |
| Add a general header to the message. More... | |
| void | AddRequestHeader (RequestHeadersEnum requestHeader, string value) |
| Add a request header to the message. More... | |
| void | AddResponseHeader (ResponseHeadersEnum responseHeader, string value) |
| Add a response header to the message. More... | |
| void | AddEntityHeaders (EntityHeadersEnum entityHeader, string value) |
| Add an entity header to the message. More... | |
| byte [] | GetRequest () |
| Build the request bytes based on the message contents. More... | |
| void | ParseRequest (byte[] requestBytes) |
| Parse the received bytes and populate the message contents. More... | |
| byte [] | GetResponse (bool includeContentLengthHeader) |
| Build the response bytes based on the message contents. More... | |
| void | ParseResponse (byte[] responseBytes) |
| Parse the received bytes and populate the message contents. More... | |
| bool | ContainsHeader (ResponseHeadersEnum header) |
| Check if the message contains a header. More... | |
| bool | ContainsHeader (RequestHeadersEnum header) |
| Check if the message contains a header. More... | |
| bool | ContainsHeader (GeneralHeadersEnum header) |
| Check if the message contains a header. More... | |
| bool | ContainsHeader (string header) |
| Check if the message contains a header. More... | |
| Dictionary< string, string > | GetPostForm () |
| Parse the body into a posted from respecting the reference manual. More... | |
+Properties | |
| +MethodEnum | Method [get, set] |
| +string | RequestURI [get, set] |
| +string | RequestQuery [get, set] |
| +byte [] | Body [get, set] |
| +StatusCodes | StatusCode [get, set] |
| string | this[string headerKey] [get, set] |
| Headers dictionary. More... | |
| string | this[GeneralHeadersEnum headerKey] [get, set] |
| Headers dictionary. More... | |
| string | this[ResponseHeadersEnum headerKey] [get, set] |
| Headers dictionary. More... | |
| string | this[RequestHeadersEnum headerKey] [get, set] |
| Headers dictionary. More... | |
| string | this[EntityHeadersEnum headerKey] [get, set] |
| Headers dictionary. More... | |
Definition at line 8 of file HttpMessage.cs.
+| void MTSC.Common.Http.HttpMessage.AddEntityHeaders | +( | +EntityHeadersEnum | +entityHeader, | +
| + | + | string | +value | +
| + | ) | ++ |
Add an entity header to the message.
+| entityHeader | Header key. |
| value | Header value. |
Definition at line 217 of file HttpMessage.cs.
+ +| void MTSC.Common.Http.HttpMessage.AddGeneralHeader | +( | +GeneralHeadersEnum | +header, | +
| + | + | string | +value | +
| + | ) | ++ |
Add a general header to the message.
+| header | Header key. |
| value | Header value. |
Definition at line 190 of file HttpMessage.cs.
+ +| void MTSC.Common.Http.HttpMessage.AddRequestHeader | +( | +RequestHeadersEnum | +requestHeader, | +
| + | + | string | +value | +
| + | ) | ++ |
Add a request header to the message.
+| requestHeader | Header key. |
| value | Header value. |
Definition at line 199 of file HttpMessage.cs.
+ +| void MTSC.Common.Http.HttpMessage.AddResponseHeader | +( | +ResponseHeadersEnum | +responseHeader, | +
| + | + | string | +value | +
| + | ) | ++ |
Add a response header to the message.
+| responseHeader | Header key. |
| value | Header value. |
Definition at line 208 of file HttpMessage.cs.
+ +| bool MTSC.Common.Http.HttpMessage.ContainsHeader | +( | +ResponseHeadersEnum | +header | ) | ++ |
Check if the message contains a header.
+| header | Key of the header. |
Definition at line 462 of file HttpMessage.cs.
+ +| bool MTSC.Common.Http.HttpMessage.ContainsHeader | +( | +RequestHeadersEnum | +header | ) | ++ |
Check if the message contains a header.
+| header | Key of the header. |
Definition at line 471 of file HttpMessage.cs.
+ +| bool MTSC.Common.Http.HttpMessage.ContainsHeader | +( | +GeneralHeadersEnum | +header | ) | ++ |
Check if the message contains a header.
+| header | Key of the header. |
Definition at line 480 of file HttpMessage.cs.
+ +| bool MTSC.Common.Http.HttpMessage.ContainsHeader | +( | +string | +header | ) | ++ |
Check if the message contains a header.
+| header | Key of the header. |
Definition at line 489 of file HttpMessage.cs.
+ +| Dictionary<string, string> MTSC.Common.Http.HttpMessage.GetPostForm | +( | +) | ++ |
Parse the body into a posted from respecting the reference manual.
+Definition at line 497 of file HttpMessage.cs.
+ +| byte [] MTSC.Common.Http.HttpMessage.GetRequest | +( | +) | ++ |
Build the request bytes based on the message contents.
+Definition at line 225 of file HttpMessage.cs.
+ +| byte [] MTSC.Common.Http.HttpMessage.GetResponse | +( | +bool | +includeContentLengthHeader | ) | ++ |
Build the response bytes based on the message contents.
+| includeContentLengthHeader | If set to true, add an extra Content-Length header specifying the length of the body. |
Definition at line 345 of file HttpMessage.cs.
+ +| void MTSC.Common.Http.HttpMessage.ParseRequest | +( | +byte [] | +requestBytes | ) | ++ |
Parse the received bytes and populate the message contents.
+| requestBytes | Message bytes to be parsed. |
Definition at line 247 of file HttpMessage.cs.
+ +| void MTSC.Common.Http.HttpMessage.ParseResponse | +( | +byte [] | +responseBytes | ) | ++ |
Parse the received bytes and populate the message contents.
+| responseBytes | Array of bytes to be parsed. |
Definition at line 375 of file HttpMessage.cs.
+ +
+
|
+ +getset | +
Headers dictionary.
+| headerKey | Key of the header. |
Definition at line 184 of file HttpMessage.cs.
+ +
+
|
+ +getset | +
Headers dictionary.
+| headerKey | Key of the header. |
Definition at line 166 of file HttpMessage.cs.
+ +
+
|
+ +getset | +
Headers dictionary.
+| headerKey | Key of the header. |
Definition at line 178 of file HttpMessage.cs.
+ +
+
|
+ +getset | +
Headers dictionary.
+| headerKey | Key of the header. |
Definition at line 172 of file HttpMessage.cs.
+ +
+
|
+ +getset | +
Headers dictionary.
+| headerKey | Key of the header. |
Definition at line 160 of file HttpMessage.cs.
+ +![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
| ▼ MTSC | |
| ▼ MTSC | |
| ▼ Client | |
| ▼ Handlers | |
| BroadcastHandler.cs | |
| EncryptionHandler.cs | |
| HttpHandler.cs | |
| IHandler.cs | |
| WebsocketHandler.cs | |
| Client.cs | |
| ▼ Common | |
| ▼ Http | |
| ▼ ClientModules | |
| IHttpModule.cs | |
| ▼ ServerModules | |
| FileServerModule.cs | |
| HelloWorldModule.cs | |
| Http404Module.cs | |
| IHttpModule.cs | |
| HttpMessage.cs | |
| ▼ WebSockets | |
| ▼ ClientModules | |
| ChatModule.cs | |
| IWebsocketModule.cs | |
| ▼ ServerModules | |
| BroadcastModule.cs | |
| EchoModule.cs | |
| IWebsocketModule.cs | |
| WebsocketMessage.cs | |
| ▼ Exceptions | |
| ExceptionConsoleLogger.cs | |
| ExceptionThrower.cs | |
| IExceptionHandler.cs | |
| InvalidFirstByteException.cs | |
| InvalidHeaderException.cs | |
| InvalidHttpVersionException.cs | |
| InvalidPostFormException.cs | |
| InvalidRequestURIException.cs | |
| InvalidStatusCodeException.cs | |
| InvalidWebsocketFormatException.cs | |
| MethodInvalidException.cs | |
| NoDataException.cs | |
| ▼ Logging | |
| ConsoleLogger.cs | |
| DebugConsoleLogger.cs | |
| ILogger.cs | |
| ▼ obj | |
| ▼ Debug | |
| ▼ net48 | |
| MTSC.AssemblyInfo.cs | |
| TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | |
| TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | |
| TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | |
| ▼ netcoreapp2.1 | |
| MTSC.AssemblyInfo.cs | |
| TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | |
| TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | |
| TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | |
| ▼ Release | |
| ▼ net45 | |
| MTSC.AssemblyInfo.cs | |
| TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | |
| TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | |
| TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | |
| ▼ net48 | |
| MTSC.AssemblyInfo.cs | |
| TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | |
| TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | |
| TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | |
| ▼ netcoreapp2.1 | |
| MTSC.AssemblyInfo.cs | |
| TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | |
| TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs | |
| TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | |
| ▼ Server | |
| ▼ Handlers | |
| BroadcastHandler.cs | |
| EncryptionHandler.cs | |
| HttpHandler.cs | |
| IHandler.cs | |
| WebsocketHandler.cs | |
| Server.cs | |
| CommunicationPrimitives.cs | |
| HelperFunctions.cs | |
| Message.cs |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
This page explains how to interpret the graphs that are generated by doxygen.
+Consider the following example:
This will result in the following graph:
+
+The boxes in the above graph have the following meaning:
+The arrows have the following meaning:
+![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
| CMTSC.Client.Client | Base class for TCP Client |
| CMTSC.Server.ClientData | Structure containing client information |
| ▼CException | |
| CMTSC.Exceptions.InvalidFirstByteException | Exception in case of first invalid byte for websocket communication |
| CMTSC.Exceptions.InvalidHeaderException | Exception for invalid headers |
| CMTSC.Exceptions.InvalidHttpVersionException | Exception in case of Invalid HTTP Version |
| CMTSC.Exceptions.InvalidPostFormException | Exception for invalid post forms |
| CMTSC.Exceptions.InvalidRequestURIException | Exception cause by an invalid request URI |
| CMTSC.Exceptions.InvalidStatusCodeException | Exception for invalid response status code |
| CMTSC.Exceptions.InvalidWebsocketFormatException | |
| CMTSC.Exceptions.MethodInvalidException | Invalid HTTP Method Exception |
| CMTSC.Exceptions.NoDataException | |
| CMTSC.Common.Http.HttpMessage | |
| ▼CMTSC.Exceptions.IExceptionHandler | Handler to be used for handling exception |
| CMTSC.Exceptions.ExceptionConsoleLogger | Logs the received exceptions to the console |
| CMTSC.Exceptions.ExceptionThrower | Throws all handled exceptions |
| ▼CMTSC.Client.Handlers.IHandler | Handler interface for client communication |
| CMTSC.Client.Handlers.BroadcastHandler | |
| CMTSC.Client.Handlers.EncryptionHandler | |
| CMTSC.Client.Handlers.HttpHandler | Handler for handling client http communication |
| CMTSC.Client.Handlers.WebsocketHandler | Handler implementing websocket protocol |
| ▼CMTSC.Server.Handlers.IHandler | Interface for communication handlers |
| CMTSC.Server.Handlers.BroadcastHandler | Broadcast handler |
| CMTSC.Server.Handlers.EncryptionHandler | Handler that encrypts the communication |
| CMTSC.Server.Handlers.HttpHandler | Handler for handling server http requests |
| CMTSC.Server.Handlers.WebsocketHandler | |
| ▼CMTSC.Common.Http.ServerModules.IHttpModule | Interface for Http modules used by the server http handler |
| CMTSC.Common.Http.ServerModules.FileServerModule | |
| CMTSC.Common.Http.ServerModules.HelloWorldModule | |
| CMTSC.Common.Http.ServerModules.Http404Module | Simple module that returns status code 404 |
| CMTSC.Common.Http.ClientModules.IHttpModule | |
| ▼CMTSC.Logging.ILogger | Interface for loggers |
| CMTSC.Logging.ConsoleLogger | Basic logger that outputs the log messages to the console |
| CMTSC.Logging.DebugConsoleLogger | |
| ▼CMTSC.Common.WebSockets.ClientModules.IWebsocketModule | Interface for websocket modules |
| CMTSC.Common.WebSockets.ClientModules.ChatModule | |
| ▼CMTSC.Common.WebSockets.ServerModules.IWebsocketModule | |
| CMTSC.Common.WebSockets.ServerModules.BroadcastModule | |
| CMTSC.Common.WebSockets.ServerModules.EchoModule | |
| CMTSC.Message | |
| CMTSC.Server.Server | Basic server class to handle TCP connections |
| CMTSC.Common.WebSockets.WebsocketMessage | Class containing the bytes of a websocket received message |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
| t |
![]() |
+
+ MTSC
+ 1.0.0
+
+ Build TCP servers out of modules with handlers for communication, exception and logging.
+ |
+
| ▼NMTSC | |
| ▼NClient | |
| NHandlers | |
| ▼NCommon | |
| ▼NHttp | |
| NClientModules | |
| NServerModules | |
| ▼NWebSockets | |
| NClientModules | |
| NServerModules | |
| NExceptions | |
| NLogging | |
| ▼NServer | |
| NHandlers |