Skip to main contentModule server_sockets
Source - HandshakeError ๐
- Represents possible errors that can occur during the client handshake phase.
- activate_socket
- Binds the TCP server socket to the specified port and spawns the main incoming connection listener loop.
- check_version_compatibility ๐
- Validates the initial handshake packet sent by a newly connected client.
- handle_client ๐
- Orchestrates the lifecycle of an individual client connection.
- handle_messages ๐
- Routes general, authorized client messages to appropriate engine functions or command handlers.
- read_thread ๐
- Continuously reads, deserializes, and processes incoming messages from an active client connection.
- update_login_status ๐
- Evaluates authentication-related client messages (
Login, Relogin, Logout) and updates global session states
(via return). - write_thread ๐
- Manages outgoing data serialization and transmission to the client on a dedicated background thread.