Reads a packet type from in
and verifies that it equals expectedPacketType
, throwing an exception otherwise
Performs protocol version exchange with Vector, acting as a client.
Performs protocol version exchange with Vector, acting as a client.
If the version received from the server is not compatible with what is expected(i.e. version
), it will
throw an exception
Reads a connection client type from the socket, throwing an exception if it does not match expectedClientType
Performs protocol version exchange with Vector, acting as a server.
Write a connection client type message through socket
Helper functions for communicating with Vector.
These functions follow the Vector network communication protocol.