Uses of Class
org.drasyl.identity.DrasylAddress
Packages that use 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
DrasylNodes 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
Methods in org.drasyl.channel that return DrasylAddressConstructors in org.drasyl.channel with parameters of type DrasylAddressModifierConstructorDescriptionDrasylChannel(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
Methods in org.drasyl.handler that return types with arguments of type DrasylAddressModifier and TypeMethodDescriptionMap<DrasylAddress,org.drasyl.handler.PeersRttHandler.PeerRtt> PeersRttHandler.PeersRttReport.peers()Constructor parameters in org.drasyl.handler with type arguments of type DrasylAddressModifierConstructorDescriptionPeersRttReport(Map<DrasylAddress, org.drasyl.handler.PeersRttHandler.PeerRtt> peers) -
Uses of DrasylAddress in org.drasyl.handler.discovery
Methods in org.drasyl.handler.discovery that return DrasylAddressMethods in org.drasyl.handler.discovery with parameters of type DrasylAddressModifier and TypeMethodDescriptionstatic AddPathAndChildrenEventAddPathAndChildrenEvent.of(DrasylAddress address, InetSocketAddress inetAddress, Object path) static AddPathAndSuperPeerEventAddPathAndSuperPeerEvent.of(DrasylAddress address, InetSocketAddress inetAddress, Object path, long rtt) static AddPathEventAddPathEvent.of(DrasylAddress address, InetSocketAddress inetAddress, Object path) static AddPathEventAddPathEvent.of(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path, long rtt) static PathRttEventPathRttEvent.of(DrasylAddress publicKey, InetSocketAddress inetAddress, Object path, long rtt) static RemoveChildrenAndPathEventRemoveChildrenAndPathEvent.of(DrasylAddress address, Object path) static RemovePathEventRemovePathEvent.of(DrasylAddress address, Object path) static RemoveSuperPeerAndPathEventRemoveSuperPeerAndPathEvent.of(DrasylAddress address, Object path) -
Uses of DrasylAddress in org.drasyl.handler.monitoring
Fields in org.drasyl.handler.monitoring with type parameters of type DrasylAddressModifier and TypeFieldDescriptionprotected final Map<DrasylAddress,InetSocketAddress> TopologyHandler.childrenPeersprotected final Map<DrasylAddress,InetSocketAddress> TopologyHandler.peersprotected final Map<DrasylAddress,InetSocketAddress> TopologyHandler.superPeersMethods in org.drasyl.handler.monitoring that return DrasylAddressMethods in org.drasyl.handler.monitoring that return types with arguments of type DrasylAddressModifier and TypeMethodDescriptionTopologyHandler.Topology.childrenPeers()TopologyHandler.Topology.peers()TopologyHandler.Topology.superPeers()Constructors in org.drasyl.handler.monitoring with parameters of type DrasylAddressModifierConstructorDescriptionTopology(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 DrasylAddressModifierConstructorDescriptionTopology(DrasylAddress address, Map<DrasylAddress, InetSocketAddress> superPeers, Map<DrasylAddress, InetSocketAddress> childrenPeers, Map<DrasylAddress, InetSocketAddress> peers) protectedTopologyHandler(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 DrasylAddressModifierConstructorDescriptionStaticRoutesHandler(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 DrasylAddressModifier and TypeFieldDescriptionprotected final Map<DrasylAddress,org.drasyl.handler.remote.internet.InternetDiscoverySuperPeerHandler.ChildrenPeer> InternetDiscoverySuperPeerHandler.childrenPeersMethods in org.drasyl.handler.remote.internet with parameters of type DrasylAddressModifier and TypeMethodDescriptionprotected voidInternetDiscoveryChildrenHandler.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
Methods in org.drasyl.handler.remote.protocol that return DrasylAddressModifier and TypeMethodDescriptionabstract DrasylAddressUniteMessage.getAddress()Returns the public key of the peer.FullReadMessage.getRecipient()Returns theIdentityPublicKeyof the message recipient.abstract DrasylAddressHelloMessage.getRecipient()Returns theIdentityPublicKeyof the message recipient.abstract DrasylAddressPublicHeader.getRecipient()RemoteMessage.getRecipient()abstract DrasylAddressUnarmedProtocolMessage.getRecipient()abstract DrasylAddressPublicHeader.getSender()RemoteMessage.getSender()Methods in org.drasyl.handler.remote.protocol with parameters of type DrasylAddressModifier and TypeMethodDescriptionstatic AcknowledgementMessageAcknowledgementMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time) static AcknowledgementMessageAcknowledgementMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time) Creates new acknowledgement message.static ApplicationMessageApplicationMessage.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 ArmedProtocolMessageArmedProtocolMessage.of(Nonce nonce, HopCount hopCount, int networkId, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an armed message.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork) Creates a newHelloMessage.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static HelloMessageHelloMessage.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 HelloMessageHelloMessage.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 PublicHeaderPublicHeader.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork) static UnarmedProtocolMessageUnarmedProtocolMessage.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 UniteMessageUniteMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, DrasylAddress address, Set<InetSocketAddress> inetAddresses) static UniteMessageUniteMessage.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
Subclasses of DrasylAddress in org.drasyl.identityModifier and TypeClassDescriptionclassThis class models an ed25519 public key that is used as node's unique overlay address.Methods in org.drasyl.identity that return DrasylAddressMethods in org.drasyl.identity with parameters of type DrasylAddressModifier and TypeMethodDescriptionstatic ProofOfWorkProofOfWork.generateProofOfWork(DrasylAddress address, byte difficulty) static byteProofOfWork.getDifficulty(ProofOfWork proofOfWork, DrasylAddress publicKey) booleanProofOfWork.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
Methods in org.drasyl.node that return types with arguments of type DrasylAddressModifier and TypeMethodDescriptionabstract Map<DrasylAddress,InetSocketAddress> DrasylConfig.getRemoteStaticRoutes()static Map<DrasylAddress,InetSocketAddress> DrasylConfig.getStaticRoutes(com.typesafe.config.Config config, String path) Methods in org.drasyl.node with parameters of type DrasylAddressModifier and TypeMethodDescriptionCompletionStage<io.netty.channel.Channel>DrasylNode.resolve(DrasylAddress address) Creates a future containing aChannelfor communication withaddress.DrasylNode.send(DrasylAddress recipient, Object payload) Sends the content ofpayloadto the identityrecipient.Method parameters in org.drasyl.node with type arguments of type DrasylAddressModifier and TypeMethodDescriptionabstract DrasylConfig.BuilderDrasylConfig.Builder.remoteStaticRoutes(Map<DrasylAddress, InetSocketAddress> remoteStaticRoutes) -
Uses of DrasylAddress in org.drasyl.node.behaviour
Methods in org.drasyl.node.behaviour with parameters of type DrasylAddressModifier and TypeMethodDescriptionBehavior.BehaviorBuilder.onMessageEquals(DrasylAddress sender, M payload, Supplier<Behavior> handler) Add a new case to the event handling matching events of typeMessageEventwith equalMessageEvent.getPayload().Method parameters in org.drasyl.node.behaviour with type arguments of type DrasylAddressModifier and TypeMethodDescriptionBehavior.BehaviorBuilder.messageAdapter(Class<M> messageType, BiFunction<DrasylAddress, M, Object> adapter) Add a new case to the event handling matching events of typeMessageEventwithMessageEvent.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 typeMessageEventwithMessageEvent.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 typeMessageEventwithMessageEvent.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 typeMessageEventwithMessageEvent.getPayload()matchingmessageType. -
Uses of DrasylAddress in org.drasyl.node.event
Methods in org.drasyl.node.event that return DrasylAddressModifier and TypeMethodDescriptionabstract DrasylAddressPeer.getAddress()Returns the peer's address.Peer.getIdentityPublicKey()Deprecated, for removal: This API element is subject to removal in a future version.abstract DrasylAddressMessageEvent.getSender()Returns the message's sender.Methods in org.drasyl.node.event with parameters of type DrasylAddressModifier and TypeMethodDescriptionstatic MessageEventMessageEvent.of(DrasylAddress sender, Object payload) Creates a newMessageEventstatic PeerPeer.of(DrasylAddress address)
Peer.getAddress()instead.