java.lang.Object
net.i2p.router.transport.udp.InboundEstablishState2.AddressSelection
- Enclosing class:
InboundEstablishState2
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 Summary
FieldsModifier and TypeFieldDescription(package private) final StringSet when the advertised IP differs from the sender's; null otherwise.(package private) final RouterAddressThe selected address, or null when no address qualified.Constructor Summary
ConstructorsConstructorDescriptionAddressSelection(RouterAddress ra, String mismatchMessage) Record the chosen address and any IP-mismatch warning that came with it.Method Summary
Field Details
ra
The selected address, or null when no address qualified.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 qualifiedmismatchMessage- the advertised-IP mismatch warning, or null when there is none