Uses of Class
org.drasyl.identity.DrasylAddress
-
Packages that use DrasylAddress Package Description org.drasyl.channel nettyChannel
for the drasyl overlay network.org.drasyl.handler.discovery Different methods to discover peers.org.drasyl.handler.monitoring Logs channel events/messages for monitoring purpose.org.drasyl.handler.remote Handlers used to communicate with remote nodes.org.drasyl.handler.remote.internet Discovery/Routing of peers on the internet.org.drasyl.handler.remote.protocol The protocol used for communication with remote peers.org.drasyl.identity Contains classes to manage theIdentity
of the drasyl node. -
-
Uses of DrasylAddress in org.drasyl.channel
Methods in org.drasyl.channel that return DrasylAddress Modifier and Type Method Description protected DrasylAddress
DrasylServerChannel. localAddress0()
Constructors in org.drasyl.channel with parameters of type DrasylAddress Constructor Description DrasylChannel(io.netty.channel.Channel parent, org.drasyl.channel.DrasylChannel.State state, DrasylAddress localAddress, DrasylAddress remoteAddress)
DrasylChannel(DrasylServerChannel parent, DrasylAddress remoteAddress)
OverlayAddressedMessage(M message, DrasylAddress recipient)
OverlayAddressedMessage(M message, DrasylAddress recipient, DrasylAddress sender)
-
Uses of DrasylAddress in org.drasyl.handler.discovery
Methods in org.drasyl.handler.discovery that return DrasylAddress Modifier and Type Method Description DrasylAddress
PathEvent. getAddress()
Methods in org.drasyl.handler.discovery with parameters of type DrasylAddress Modifier and Type Method Description static AddPathAndChildrenEvent
AddPathAndChildrenEvent. of(DrasylAddress address, InetSocketAddress inetAddress, Object path)
static AddPathAndSuperPeerEvent
AddPathAndSuperPeerEvent. of(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path)
static AddPathEvent
AddPathEvent. of(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path)
static RemoveChildrenAndPathEvent
RemoveChildrenAndPathEvent. of(DrasylAddress address, Object path)
static RemovePathEvent
RemovePathEvent. of(DrasylAddress publicKey, Object path)
static RemoveSuperPeerAndPathEvent
RemoveSuperPeerAndPathEvent. of(DrasylAddress addresss, Object path)
-
Uses of DrasylAddress in org.drasyl.handler.monitoring
Fields in org.drasyl.handler.monitoring with type parameters of type DrasylAddress Modifier and Type Field Description protected Map<DrasylAddress,InetSocketAddress>
TopologyHandler. childrenPeers
protected Map<DrasylAddress,InetSocketAddress>
TopologyHandler. peers
protected Map<DrasylAddress,InetSocketAddress>
TopologyHandler. superPeers
Methods in org.drasyl.handler.monitoring that return DrasylAddress Modifier and Type Method Description DrasylAddress
TopologyHandler.Topology. address()
Methods in org.drasyl.handler.monitoring that return types with arguments of type DrasylAddress Modifier and Type Method Description Map<DrasylAddress,InetSocketAddress>
TopologyHandler.Topology. childrenPeers()
Map<DrasylAddress,InetSocketAddress>
TopologyHandler.Topology. peers()
Map<DrasylAddress,InetSocketAddress>
TopologyHandler.Topology. superPeers()
Constructors in org.drasyl.handler.monitoring with parameters of type DrasylAddress Constructor Description Topology(DrasylAddress address, Map<DrasylAddress,InetSocketAddress> superPeers, Map<DrasylAddress,InetSocketAddress> childrenPeers, Map<DrasylAddress,InetSocketAddress> peers)
Constructor parameters in org.drasyl.handler.monitoring with type arguments of type DrasylAddress Constructor Description Topology(DrasylAddress address, Map<DrasylAddress,InetSocketAddress> superPeers, Map<DrasylAddress,InetSocketAddress> childrenPeers, Map<DrasylAddress,InetSocketAddress> peers)
TopologyHandler(Map<DrasylAddress,InetSocketAddress> superPeers, Map<DrasylAddress,InetSocketAddress> childrenPeers, Map<DrasylAddress,InetSocketAddress> peers)
-
Uses of DrasylAddress in org.drasyl.handler.remote
Constructor parameters in org.drasyl.handler.remote with type arguments of type DrasylAddress Constructor Description StaticRoutesHandler(Map<DrasylAddress,InetSocketAddress> staticRoutes)
-
Uses of DrasylAddress in org.drasyl.handler.remote.internet
Fields in org.drasyl.handler.remote.internet with type parameters of type DrasylAddress Modifier and Type Field Description protected Map<DrasylAddress,org.drasyl.handler.remote.internet.InternetDiscoverySuperPeerHandler.ChildrenPeer>
InternetDiscoverySuperPeerHandler. childrenPeers
Methods in org.drasyl.handler.remote.internet with parameters of type DrasylAddress Modifier and Type Method Description protected void
InternetDiscoveryChildrenHandler. writeHelloMessage(io.netty.channel.ChannelHandlerContext ctx, DrasylAddress publicKey, InetSocketAddress inetAddress, boolean isChildrenJoin)
Make sure to callChannel.flush()
by your own! -
Uses of DrasylAddress in org.drasyl.handler.remote.protocol
Methods in org.drasyl.handler.remote.protocol that return DrasylAddress Modifier and Type Method Description abstract DrasylAddress
UniteMessage. getAddress()
Returns the public key of the peer.DrasylAddress
FullReadMessage. getRecipient()
Returns theIdentityPublicKey
of the message recipient.abstract DrasylAddress
HelloMessage. getRecipient()
Returns theIdentityPublicKey
of the message recipient.abstract DrasylAddress
PublicHeader. getRecipient()
DrasylAddress
RemoteMessage. getRecipient()
abstract DrasylAddress
UnarmedProtocolMessage. getRecipient()
abstract DrasylAddress
PublicHeader. getSender()
DrasylAddress
RemoteMessage. getSender()
Methods in org.drasyl.handler.remote.protocol with parameters of type DrasylAddress Modifier and Type Method Description static AcknowledgementMessage
AcknowledgementMessage. of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time)
static AcknowledgementMessage
AcknowledgementMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time)
Creates new acknowledgement message.static ApplicationMessage
ApplicationMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf payload)
Creates new application message.static ArmedProtocolMessage
ArmedProtocolMessage. of(Nonce nonce, HopCount hopCount, int networkId, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes)
Creates an armed message.static HelloMessage
HelloMessage. of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork)
Creates a newHelloMessage
message.static HelloMessage
HelloMessage. of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey)
Creates a newHelloMessage
message.static HelloMessage
HelloMessage. of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long childrenTime, IdentitySecretKey secretKey)
Creates a newHelloMessage
message.static HelloMessage
HelloMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey)
Creates new application message.static HelloMessage
HelloMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, ImmutableByteArray signature)
Creates new application message.static PublicHeader
PublicHeader. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork)
static UnarmedProtocolMessage
UnarmedProtocolMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes)
Creates an unarmed message.static UniteMessage
UniteMessage. of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, DrasylAddress address, InetSocketAddress inetAddress)
static UniteMessage
UniteMessage. of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, DrasylAddress address, InetAddress inetAddress, UnsignedShort port)
Creates new unit message. -
Uses of DrasylAddress in org.drasyl.identity
Subclasses of DrasylAddress in org.drasyl.identity Modifier and Type Class Description class
IdentityPublicKey
This class models an ed25519 public key that is used as node's unique overlay address.Methods in org.drasyl.identity that return DrasylAddress Modifier and Type Method Description DrasylAddress
Identity. getAddress()
Returns the address for this identity.Methods in org.drasyl.identity with parameters of type DrasylAddress Modifier and Type Method Description static ProofOfWork
ProofOfWork. generateProofOfWork(DrasylAddress address, byte difficulty)
static byte
ProofOfWork. getDifficulty(ProofOfWork proofOfWork, DrasylAddress publicKey)
boolean
ProofOfWork. isValid(DrasylAddress address, byte difficulty)
Checks if the current proof of work is valid for given public key and difficulty.
-