| Package | Description |
|---|---|
| net.i2p.router.transport.udp | The UDP transport (also known as 'SSU' or Secure Semi-reliable UDP transport)
for I2P, allowing I2P messages to be passed over UDP connections. |
| Modifier and Type | Field and Description |
|---|---|
OutboundMessageState | PacketBuilder.Fragment.statestate. |
| Modifier and Type | Method and Description |
|---|---|
(package private) List<OutboundMessageState> | PeerState.finishAndAllocate(long now)Replaces the two-pass pattern of finishMessages() + allocateSend() with a single pass
through _outboundMessages. |
(package private) List<OutboundMessageState> | PeerState2.finishAndAllocate(long now)Single-pass combined cleanup + send allocation, overriding the base class
to incorporate SSU2-specific _sentMessages cleanup and SessionConfirmed
retransmit logic. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | PeerState.add(OutboundMessageState state)Add an outbound message state to the queue. |
void | OutboundMessageFragments.add(OutboundMessageState state,
PeerState peer)Short circuit the OutNetMessage, letting us send the establish
complete message reliably. |
UDPPacket | PacketBuilder2.buildPacket(OutboundMessageState state,
int fragment,
PeerState2 peer)This builds a data packet (PAYLOAD_TYPE_DATA). |
void | UDPTransport.failed(OutboundMessageState msg)Handle a failed outbound message. |
(package private) void | UDPTransport.failed(OutboundMessageState msg,
boolean allowPeerFailure) |
void | UDPTransport.succeeded(OutboundMessageState msg)Handle a successful outbound message. |
| Modifier and Type | Method and Description |
|---|---|
void | OutboundMessageFragments.add(List<OutboundMessageState> states,
PeerState peer)Short circuit the OutNetMessage, letting us send multiple messages
reliably and efficiently. |
| Constructor and Description |
|---|
FirstFragBlock(OutboundMessageState msg)Create a first fragment block. |
FollowFragBlock(OutboundMessageState msg,
int frag)Create a follow-on fragment block. |
Fragment(OutboundMessageState state,
int num)Fragment. |
I2NPBlock(OutboundMessageState msg)Create an I2NP message block. |