Interface AddressEventListener

  • public interface AddressEventListener

    Implementors can listen to addresses being received from remote peers.

    • Method Detail

      • onAddr

        void onAddr​(Peer peer,
                    AddressMessage message)

        Called when a peer receives an addr or addrv2 message, usually in response to a getaddr message.

        peer - the peer that received the addr or addrv2 message
        message - the addr or addrv2 message that was received