Class TraversingInternetDiscoveryChildrenHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
org.drasyl.handler.remote.internet.InternetDiscoveryChildrenHandler
org.drasyl.handler.remote.internet.TraversingInternetDiscoveryChildrenHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public class TraversingInternetDiscoveryChildrenHandler extends InternetDiscoveryChildrenHandler
Extends InternetDiscoveryChildrenHandler by performing a rendezvous initiated by one of our super peers.
See Also:
  • Constructor Details

    • TraversingInternetDiscoveryChildrenHandler

      public TraversingInternetDiscoveryChildrenHandler(int myNetworkId, IdentityPublicKey myPublicKey, IdentitySecretKey mySecretKey, ProofOfWork myProofOfWork, long initialPingDelayMillis, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, Map<IdentityPublicKey,InetSocketAddress> superPeerAddresses, long pingCommunicationTimeoutMillis, long maxPeers)
      Parameters:
      myNetworkId - the network we belong to
      myPublicKey - own public key
      mySecretKey - own secret key
      myProofOfWork - own proof of work
      initialPingDelayMillis - time in millis after InternetDiscoveryChildrenHandler.channelActive(ChannelHandlerContext) has been fired, we start to ping super peers
      pingIntervalMillis - interval in millis between a ping
      pingTimeoutMillis - time in millis without ping response before a peer is assumed as unreachable
      maxTimeOffsetMillis - time millis offset of received messages' timestamp before discarding them
      superPeerAddresses - inet addresses and public keys of super peers
      pingCommunicationTimeoutMillis - time in millis a traversed connection to a peer will be discarded without application traffic
      maxPeers - maximum number of peers to which a traversed connection should be maintained at the same time
  • Method Details