Package net.i2p.router.transport.udp
Interface SSU2Sender
- All Known Implementing Classes:
PeerState2
,PeerStateDestroyed
interface SSU2Sender
Basic interface over top of PeerState2 and PeerStateDestroyed,
so we can pass them both to PacketBuilder2 to send packets.
- Since:
- 0.9.57
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fragmentsSent
(long pktNum, int length, List<PacketBuilder.Fragment> fragments) byte
getFlags()
int
getMTU()
long
int
long
byte[]
byte[]
boolean
isIPv6()
void
setDestroyReason
(int reason)
-
Method Details
-
getRemoteHostId
RemoteHostId getRemoteHostId() -
isIPv6
boolean isIPv6() -
getRemoteIPAddress
InetAddress getRemoteIPAddress() -
getRemotePort
int getRemotePort() -
getMTU
int getMTU() -
getNextPacketNumber
- Throws:
IOException
-
getSendConnID
long getSendConnID() -
getSendCipher
CipherState getSendCipher() -
getSendHeaderEncryptKey1
byte[] getSendHeaderEncryptKey1() -
getSendHeaderEncryptKey2
byte[] getSendHeaderEncryptKey2() -
setDestroyReason
void setDestroyReason(int reason) -
getReceivedMessages
SSU2Bitfield getReceivedMessages() -
getAckedMessages
SSU2Bitfield getAckedMessages() -
fragmentsSent
-
getFlags
byte getFlags()
-