Package org.drasyl.handler.remote
Handlers used to communicate with remote nodes.
-
Class Summary Class Description ApplicationMessageToPayloadCodec This codec convertsApplicationMessage
s to the embedded payload and vice versa.ByteToRemoteMessageCodec This codec convertsByteBuf
s toRemoteMessage
s an vice versa.InvalidProofOfWorkFilter This handler filters out all messages received with invalid proof of work.LocalHostDiscovery Uses the file system to discover other drasyl nodes running on the local computer.LocalHostPeerInformation LocalNetworkDiscovery This handler, along with theUdpMulticastServer
orUdpBroadcastServer
, is used to discover other nodes on the local network via IP multicast or broadcast.OtherNetworkFilter This handler filters out all messages received from other networks.RateLimiter This handler rate limitsAcknowledgementMessage
,HelloMessage
, andUniteMessage
messages addressed to us.StaticRoutesHandler This handler uses preconfigured static routes to deliver messages.UdpBroadcastServer Starts an UDP broadcast server and together with theLocalNetworkDiscovery
is responsible for discovering other nodes in the local network.UdpMulticastServer Starts an UDP server which joins a IP multicast group and together with theLocalNetworkDiscovery
is responsible for discovering other nodes in the local network.UdpServer Binds to an udp port, sends outgoing messages via udp, and sends received udp packets to theChannel
.UdpServer.Port Signals that theUdpServer
is bind toUdpServer.Port.getPort()
. -
Exception Summary Exception Description InvalidProofOfWorkFilter.InvalidProofOfWorkException Signals that a message was received with an invalidProofOfWork
and was dropped.OtherNetworkFilter.OtherNetworkException Signals that a message was received from another network and was dropped.UdpServer.BindFailedException Signals that theUdpServer
was unable to bind to port.