Package org.drasyl.node.handler.crypto
Class ArmMessage
java.lang.Object
org.drasyl.node.handler.crypto.ArmMessage
- Direct Known Subclasses:
AcknowledgementMessage,KeyExchangeMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBuffromApplication(io.netty.buffer.ByteBuf msg) abstract org.drasyl.node.handler.crypto.ArmMessage.MessageTypegetType()static Objectof(io.netty.buffer.ByteBuf byteBuf) io.netty.buffer.ByteBufabstract voidwriteBody(io.netty.buffer.ByteBuf byteBuf)
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
ArmMessage
public ArmMessage()
-
-
Method Details
-
getType
public abstract org.drasyl.node.handler.crypto.ArmMessage.MessageType getType() -
writeBody
public abstract void writeBody(io.netty.buffer.ByteBuf byteBuf) -
toByteBuf
public io.netty.buffer.ByteBuf toByteBuf() -
fromApplication
public static io.netty.buffer.ByteBuf fromApplication(io.netty.buffer.ByteBuf msg) -
of
- Throws:
InvalidMessageFormatException
-