[utils]
Utils related to network communication endpoints' setup and usage.
Endpoints setup utils
- build_client: Instantiate a NetworkClient, selecting its subclass based on protocol name.
- build_server: Instantiate a NetworkServer, selecting its subclass based on protocol name.
- list_available_protocols: Return the list of readily-available network protocols.
- NetworkClientConfig: TOML-parsable dataclass for network clients' instantiation.
- NetworkServerConfig: TOML-parsable dataclass for network servers' instantiation.
Message-type control utils
- ErrorMessageException: Exception raised when an unexpected 'Error' message is received.
- MessageTypeException: Exception raised when a received 'Message' has wrong type.
- verify_client_messages_validity: Verify that received serialized messages match an expected type.
- verify_server_message_validity: Verify that a received serialized message matches expected type.