SIMP server is the lightweight blocking I/O server for SIMP messaging protocol.
SIMP is an lightweight binary protocol for chat messages.
This request types can be used to connect to the chat server or disconnection from the chat server.
--------------------------------------------
| Protocol | Request | Username | |
| Version | Type | length | Username |
| 1 byte | 1 byte | 1 byte | |
--------------------------------------------
This type of request can be used to send messages to the chat server.
----------------------------------------------------------------
| Protocol | Request | Username | | Message | |
| Version | Type | length | Username | length | Message |
| 1 byte | 1 byte | 1 byte | | 2 bytes | |
----------------------------------------------------------------
This is a response from the server after successfully connection established.
-------------------------------------------
| Protocol | Response | Users | Users |
| Version | Type | length | online |
| 1 byte | 1 byte | 2 bytes | current |
-------------------------------------------
This response types from the server aftre another user connected or disconnected.
---------------------------------------------
| Protocol | Response | Username | |
| Version | Type | length | Username |
| 1 byte | 1 byte | 1 byte | |
---------------------------------------------
This response from the server on another users messages.
-----------------------------------------------------------------
| Protocol | Response | Username | | Message | |
| Version | Type | length | Username | length | Message |
| 1 byte | 1 byte | 1 byte | | 2 bytes | |
-----------------------------------------------------------------