Added an init() method to ConnectionState that can be called once the state is ready to start being used for the connection.
Added an init() method to ConnectionState that can be called once the state is ready to start being used for the connection.
Allow the list of registered listeners to be modified from inside the event loop.
Correct the specified property resource in EncryptionManagerImpl.
Made public the fromHex and toHex methods to encode/decode a byte field into from/to a String.
Made EncryptionManager a field of Game.
Removed encryption-related code from Game (since it is contained in the EncryptionManager).
Added a method in EncryptionManager to crypt data using a foreign public key.
Added an utility method in EncryptionManager to convert a byte field into a public key.
Modified CryptDecoder so it accepts a public key as a parameter of send() to allow encryption of the payload.