Package org.drasyl.identity
Class DrasylAddress
java.lang.Object
java.net.SocketAddress
org.drasyl.identity.DrasylAddress
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IdentityPublicKey
Models the address to a peer in the overlay. The address is used to send overlay messages to.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]
abstract void
writeTo
(io.netty.buffer.ByteBuf out) Writes this public key to the bufferout
.
-
Constructor Details
-
DrasylAddress
public DrasylAddress()
-
-
Method Details
-
toByteArray
public abstract byte[] toByteArray() -
writeTo
public abstract void writeTo(io.netty.buffer.ByteBuf out) Writes this public key to the bufferout
.- Parameters:
out
- writes this public key to the given buffer
-