Package org.drasyl.handler.remote
package org.drasyl.handler.remote
Handlers used to communicate with remote nodes.
-
ClassDescriptionThis codec converts
ApplicationMessage
s to the embedded payload and vice versa.This codec convertsByteBuf
s toRemoteMessage
s an vice versa.EncodesDatagramPacket
s toInetAddressedMessage
s and vice versa.This handler filters out all messages received with invalid proof of work.Signals that a message was received with an invalidProofOfWork
and was dropped.Uses the file system to discover other drasyl nodes running on the local computer.This handler, along with theUdpMulticastServer
orUdpBroadcastServer
, is used to discover other nodes on the local network via IP multicast or broadcast.This handler filters out all messages received from other networks.Signals that a message was received from another network and was dropped.This handler rate limitsAcknowledgementMessage
,HelloMessage
, andUniteMessage
messages addressed to us.This handler uses preconfigured static routes to deliver messages.Starts an UDP broadcast server and together with theLocalNetworkDiscovery
is responsible for discovering other nodes in the local network.Starts an UDP server which joins a IP multicast group and together with theLocalNetworkDiscovery
is responsible for discovering other nodes in the local network.Binds to an udp port, sends outgoing messages via udp, and sends received udp packets to theChannel
.Signals that theUdpServer
was unable to bind to given address.Signals that theUdpServer
is bound toUdpServer.UdpServerBound.getBindAddress()
.This handler passes messages from theDatagramChannel
to theDrasylServerChannel
's context.This handler fails and drops all outboundOverlayAddressedMessage
s.