Class InternetDiscoveryHandler

  • All Implemented Interfaces:
    Handler

    public class InternetDiscoveryHandler
    extends SimpleDuplexHandler<AddressedIntermediateEnvelope<? extends com.google.protobuf.MessageLite>,​SerializedApplicationMessage,​Address>
    This handler performs the following tasks, which help to communicate with nodes located in other networks:
    • Joins one or more super peers or acts itself as a super peer (super peers act as registries of available nodes on the network. they can be used as message relays and help to traverse NATs).
    • Tracks which nodes are being communicated with and tries to establish direct connections to these nodes with the help of a super peer.
    • Routes messages to the recipient. If no route is known, the message is relayed to a super peer (our default gateway).