Constructor. Initializes a TCP socket (AF_INET, STREAM)
Destructor. Closes the socket if needed.
Close the socket.
Connect to a remote endpoint. Throw Exception on error.
Reads a DO_INIT message on the client socket. Throw Exception on error.
Reads a DO_TURN message on the client socket. Throw Exception on error.
Reads a GAME_ENDS message on the client socket. Throw Exception on error.
Reads a GAME_STARTS message on the client socket. Throw Exception on error.
Reads a LOGIN_ACK message on the client socket. Throw Exception on error.
Reads a TURN message on the client socket. Throw Exception on error.
Reads a JSON message on the client socket. Throw Exception on error.
Reads a string message on the client socket. Throw Exception on error.
Send a DO_INIT_ACK message on the client socket. Throw Exception on error.
Send a DO_TURN_ACK message on the client socket. Throw Exception on error.
Send a JSON message on the client socket. Throw Exception on error.
Send a LOGIN message on the client socket. Throw Exception on error.
Send a string message on the client socket. Throw Exception on error.
Send a TURN_ACK message on the client socket. Throw Exception on error.
Netorcai metaprotocol client class (D version)