java.lang.Object
net.i2p.router.transport.udp.PeerTestManager.PTCallback
All Implemented Interfaces:
SSU2Payload.PayloadCallback
Enclosing class:
PeerTestManager

private class PeerTestManager.PTCallbackextends Object implements SSU2Payload.PayloadCallback
Collects the payloads of one peer test reply.
  • Field Summary

    Modifier and Type
    Field
    Description
    byte[]
    Alice's IP as seen by the peer.
    int
    Alice's port as seen by the peer.
    private final RemoteHostId
    The host the reply came from.
    long
    When the reply arrived.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Prepares to collect one peer test reply.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    gotACK(long ackThru, int acks, byte[] ranges)
    Receive an acknowledgment block.
    void
    gotAddress(byte[] ip, int port)
    Receive an address block.
    void
    gotDateTime(long time)
    Receive a date/time synchronization block.
    void
    gotFragment(byte[] data, int off, int len, long messageId, int frag, boolean isLast)
    Receive a fragment of a fragmented message.
    void
    Receive an I2NP message block.
    void
    gotOptions(byte[] options, boolean isHandshake)
    Receive a session options block.
    void
    gotPathChallenge(RemoteHostId from, byte[] data)
    Receive a path challenge block.
    void
    gotPathResponse(RemoteHostId from, byte[] data)
    Receive a path response block.
    void
    gotPeerTest(int msg, int status, Hash h, byte[] data)
    Receive a peer test block.
    void
    gotRelayIntro(Hash aliceHash, byte[] data)
    Receive a relay introduction.
    void
    gotRelayRequest(byte[] data)
    Receive a relay request.
    void
    gotRelayResponse(int status, byte[] data)
    Receive a relay response.
    void
    gotRelayTag(long tag)
    Receive a relay tag.
    void
    Receive a relay tag request.
    void
    gotRI(RouterInfo ri, boolean isHandshake, boolean flood)
    Receive a complete RouterInfo block.
    void
    gotRIFragment(byte[] data, boolean isHandshake, boolean flood, boolean isGzipped, int frag, int totalFrags)
    Receive a fragment of a RouterInfo block.
    void
    gotTermination(int reason, long count)
    Receive a session termination block.
    void
    gotToken(long token, long expires)
    Receive a new session token.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _from

      private final RemoteHostId _from
      The host the reply came from.
    • _timeReceived

      public long _timeReceived
      When the reply arrived.
    • _aliceIP

      public byte[] _aliceIP
      Alice's IP as seen by the peer.
    • _alicePort

      public int _alicePort
      Alice's port as seen by the peer.
  • Constructor Details

    • PTCallback

      public PTCallback(RemoteHostId from)
      Prepares to collect one peer test reply.
      Parameters:
      from - the host the reply comes from
  • Method Details