java.lang.Object
net.i2p.router.transport.udp.InboundEstablishState2.AddressSelection
Enclosing class:
InboundEstablishState2

static final class InboundEstablishState2.AddressSelectionextends Object
Result of InboundEstablishState2.selectSessionAddress(List, boolean, byte[]): the chosen RouterInfo address and, when the peer advertises a different IP than the sender's source address, an explanatory mismatch message.
  • Field Details

    • ra

      final RouterAddress ra
      The selected address, or null when no address qualified.
    • mismatchMessage

      final String mismatchMessage
      Set when the advertised IP differs from the sender's; null otherwise.
  • Constructor Details

    • AddressSelection

      AddressSelection(RouterAddress ra, String mismatchMessage)
      Record the chosen address and any IP-mismatch warning that came with it.
      Parameters:
      ra - the selected address, or null when no address qualified
      mismatchMessage - the advertised-IP mismatch warning, or null when there is none