Uses of Class
org.drasyl.identity.DrasylAddress
Package
Description
netty
Channel
for the drasyl overlay
network.Different methods to discover peers.
Logs channel events/messages for monitoring purpose.
Handlers used to communicate with remote nodes.
Discovery/Routing of peers on the internet.
The protocol used for communication with remote peers.
Contains classes to manage the
Identity
of the drasyl node.Contains
DrasylNode
.Describes
DrasylNode
s as finite state machines.Contains events that inform about various states of the
DrasylNode
(started, stopped, etc.) or overlay network events (messages, peer discovery, etc.)-
Uses of DrasylAddress in org.drasyl.channel
ModifierConstructorDescriptionDrasylChannel
(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
Modifier and TypeMethodDescriptionMap<DrasylAddress,
org.drasyl.handler.PeersRttHandler.PeerRtt> PeersRttHandler.PeersRttReport.peers()
ModifierConstructorDescriptionPeersRttReport
(Map<DrasylAddress, org.drasyl.handler.PeersRttHandler.PeerRtt> peers) -
Uses of DrasylAddress in org.drasyl.handler.discovery
Modifier and TypeMethodDescriptionstatic AddPathAndChildrenEvent
AddPathAndChildrenEvent.of
(DrasylAddress address, InetSocketAddress inetAddress, Object path) static AddPathAndSuperPeerEvent
AddPathAndSuperPeerEvent.of
(DrasylAddress address, InetSocketAddress inetAddress, Object path, long rtt) static AddPathEvent
AddPathEvent.of
(DrasylAddress address, InetSocketAddress inetAddress, Object path) static AddPathEvent
AddPathEvent.of
(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path, long rtt) static PathRttEvent
PathRttEvent.of
(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path, long rtt) static RemoveChildrenAndPathEvent
RemoveChildrenAndPathEvent.of
(DrasylAddress address, Object path) static RemovePathEvent
RemovePathEvent.of
(DrasylAddress address, Object path) static RemoveSuperPeerAndPathEvent
RemoveSuperPeerAndPathEvent.of
(DrasylAddress address, Object path) -
Uses of DrasylAddress in org.drasyl.handler.monitoring
Modifier and TypeFieldDescriptionprotected final Map<DrasylAddress,
InetSocketAddress> TopologyHandler.childrenPeers
protected final Map<DrasylAddress,
InetSocketAddress> TopologyHandler.peers
protected final Map<DrasylAddress,
InetSocketAddress> TopologyHandler.superPeers
Modifier and TypeMethodDescriptionTopologyHandler.Topology.childrenPeers()
TopologyHandler.Topology.peers()
TopologyHandler.Topology.superPeers()
ModifierConstructorDescriptionTopology
(DrasylAddress address, Map<DrasylAddress, InetSocketAddress> superPeers, Map<DrasylAddress, InetSocketAddress> childrenPeers, Map<DrasylAddress, InetSocketAddress> peers) ModifierConstructorDescriptionTopology
(DrasylAddress address, Map<DrasylAddress, InetSocketAddress> superPeers, Map<DrasylAddress, InetSocketAddress> childrenPeers, Map<DrasylAddress, InetSocketAddress> peers) protected
TopologyHandler
(Map<DrasylAddress, InetSocketAddress> superPeers, Map<DrasylAddress, InetSocketAddress> childrenPeers, Map<DrasylAddress, InetSocketAddress> peers) -
Uses of DrasylAddress in org.drasyl.handler.remote
ModifierConstructorDescriptionStaticRoutesHandler
(Map<DrasylAddress, InetSocketAddress> staticRoutes) -
Uses of DrasylAddress in org.drasyl.handler.remote.internet
Modifier and TypeFieldDescriptionprotected final Map<DrasylAddress,
org.drasyl.handler.remote.internet.InternetDiscoverySuperPeerHandler.ChildrenPeer> InternetDiscoverySuperPeerHandler.childrenPeers
Modifier and TypeMethodDescriptionprotected void
InternetDiscoveryChildrenHandler.writeHelloMessage
(io.netty.channel.ChannelHandlerContext ctx, DrasylAddress publicKey, InetSocketAddress inetAddress, Set<InetSocketAddress> privateInetAddresses) Make sure to callChannel.flush()
by your own! -
Uses of DrasylAddress in org.drasyl.handler.remote.protocol
Modifier and TypeMethodDescriptionabstract DrasylAddress
UniteMessage.getAddress()
Returns the public key of the peer.FullReadMessage.getRecipient()
Returns theIdentityPublicKey
of the message recipient.abstract DrasylAddress
HelloMessage.getRecipient()
Returns theIdentityPublicKey
of the message recipient.abstract DrasylAddress
PublicHeader.getRecipient()
RemoteMessage.getRecipient()
abstract DrasylAddress
UnarmedProtocolMessage.getRecipient()
abstract DrasylAddress
PublicHeader.getSender()
RemoteMessage.getSender()
Modifier and TypeMethodDescriptionstatic 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
.static HelloMessage
HelloMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage
.static HelloMessage
HelloMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage
.static HelloMessage
HelloMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates newHelloMessage
.static HelloMessage
HelloMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, ImmutableByteArray signature, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage
.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, Set<InetSocketAddress> inetAddresses) static UniteMessage
UniteMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, DrasylAddress address, Set<InetSocketAddress> inetAddresses) Creates new unit message. -
Uses of DrasylAddress in org.drasyl.identity
Modifier and TypeClassDescriptionclass
This class models an ed25519 public key that is used as node's unique overlay address.Modifier and TypeMethodDescriptionstatic 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. -
Uses of DrasylAddress in org.drasyl.node
Modifier and TypeMethodDescriptionabstract Map<DrasylAddress,
InetSocketAddress> DrasylConfig.getRemoteStaticRoutes()
static Map<DrasylAddress,
InetSocketAddress> DrasylConfig.getStaticRoutes
(com.typesafe.config.Config config, String path) Modifier and TypeMethodDescriptionCompletionStage<io.netty.channel.Channel>
DrasylNode.resolve
(DrasylAddress address) Creates a future containing aChannel
for communication withaddress
.DrasylNode.send
(DrasylAddress recipient, Object payload) Sends the content ofpayload
to the identityrecipient
.Modifier and TypeMethodDescriptionabstract DrasylConfig.Builder
DrasylConfig.Builder.remoteStaticRoutes
(Map<DrasylAddress, InetSocketAddress> remoteStaticRoutes) -
Uses of DrasylAddress in org.drasyl.node.behaviour
Modifier and TypeMethodDescriptionBehavior.BehaviorBuilder.onMessageEquals
(DrasylAddress sender, M payload, Supplier<Behavior> handler) Add a new case to the event handling matching events of typeMessageEvent
with equalMessageEvent.getPayload()
.Modifier and TypeMethodDescriptionBehavior.BehaviorBuilder.messageAdapter
(Class<M> messageType, BiFunction<DrasylAddress, M, Object> adapter) Add a new case to the event handling matching events of typeMessageEvent
withMessageEvent.getPayload()
matchingmessageType
.Behavior.BehaviorBuilder.onAnyMessage
(BiFunction<DrasylAddress, M, Behavior> handler) Add a new case to the event handling matching anyMessageEvent
.Behavior.BehaviorBuilder.onMessage
(Class<M> messageType, BiFunction<DrasylAddress, M, Behavior> handler) Add a new case to the event handling matching events of typeMessageEvent
withMessageEvent.getPayload()
matchingmessageType
.Behavior.BehaviorBuilder.onMessage
(Class<M> messageType, BiPredicate<DrasylAddress, M> test, BiFunction<DrasylAddress, M, Behavior> handler) Add a new predicated case to the event handling matching events of typeMessageEvent
withMessageEvent.getPayload()
matchingmessageType
.Behavior.BehaviorBuilder.onMessage
(Class<M> messageType, BiPredicate<DrasylAddress, M> test, BiFunction<DrasylAddress, M, Behavior> handler) Add a new predicated case to the event handling matching events of typeMessageEvent
withMessageEvent.getPayload()
matchingmessageType
. -
Uses of DrasylAddress in org.drasyl.node.event
Modifier and TypeMethodDescriptionabstract DrasylAddress
Peer.getAddress()
Returns the peer's address.Peer.getIdentityPublicKey()
Deprecated, for removal: This API element is subject to removal in a future version.abstract DrasylAddress
MessageEvent.getSender()
Returns the message's sender.Modifier and TypeMethodDescriptionstatic MessageEvent
MessageEvent.of
(DrasylAddress sender, Object payload) Creates a newMessageEvent
static Peer
Peer.of
(DrasylAddress address)
Peer.getAddress()
instead.