Package org.drasyl.handler.remote.protocol
The protocol used for communication with remote peers.
-
Interface Summary Interface Description FullReadMessage<T extends FullReadMessage<?>> Describes a message whose content has been read completely.PartialReadMessage Describes a message whose content has been read partially.RemoteMessage Describes a message that is sent to remote peers via UDP/TCP. -
Class Summary Class Description AcknowledgementMessage Acknowledges aHelloMessage
.ApplicationMessage Describes a message sent by an application running on drasyl.ArmedProtocolMessage Describes a protocol message whose contents has been armed by using authenticated encryption with associated data.HelloMessage Describes a message that is used to announce this node to peers or to join a super node.HopCount This is an immutable object.Nonce ARemoteMessage
is uniquely identified by itsNonce.NONCE_LENGTH
bytes long nonce.PrivateHeader This class models the private header of a drasyl protocol message.PublicHeader This class models the public header of a drasyl protocol message.UnarmedProtocolMessage Describes an unencrypted protocol message whose only public header has been read so far.UniteMessage This message is sent by a super node for NAT traversal. -
Enum Summary Enum Description PrivateHeader.MessageType -
Exception Summary Exception Description InvalidMessageFormatException This exception is thrown when reading aRemoteMessage
fails due to an invalid format.MagicNumberMissmatchException This exception is thrown when reading aRemoteMessage
fails due to a mismatched magic number (expected magic number:RemoteMessage.MAGIC_NUMBER
).