Package org.drasyl.handler.remote.protocol
package org.drasyl.handler.remote.protocol
The protocol used for communication with remote peers.
-
ClassDescriptionAcknowledges a
DiscoveryMessage
.Describes a protocol message whose contents has been armed by using authenticated encryption with associated data.FullReadMessage<T extends FullReadMessage<?>>Describes a message whose content has been read completely.This is an immutable object.This exception is thrown when reading aRemoteMessage
fails due to an invalid format.This exception is thrown when reading aRemoteMessage
fails due to a mismatched magic number (expected magic number:RemoteMessage.MAGIC_NUMBER
).ARemoteMessage
is uniquely identified by itsNonce.NONCE_LENGTH
bytes long nonce.Describes a message whose content has been read partially.This class models the private header of a drasyl protocol message.This class models the public header of a drasyl protocol message.Describes a message that is sent to remote peers via UDP/TCP.Describes an unencrypted protocol message whose only public header has been read so far.