Package net.i2p.router.transport.udp
Interface SSU2Sender
-
- All Known Implementing Classes:
PeerState2,PeerStateDestroyed
interface SSU2SenderBasic interface over top of PeerState2 and PeerStateDestroyed, so we can pass them both to PacketBuilder2 to send packets.- Since:
- 0.9.57
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfragmentsSent(long pktNum, int length, List<PacketBuilder.Fragment> fragments)SSU2BitfieldgetAckedMessages()bytegetFlags()intgetMTU()longgetNextPacketNumber()SSU2BitfieldgetReceivedMessages()RemoteHostIdgetRemoteHostId()InetAddressgetRemoteIPAddress()intgetRemotePort()CipherStategetSendCipher()longgetSendConnID()byte[]getSendHeaderEncryptKey1()byte[]getSendHeaderEncryptKey2()booleanisIPv6()voidsetDestroyReason(int reason)
-
-
-
Method Detail
-
getRemoteHostId
RemoteHostId getRemoteHostId()
-
isIPv6
boolean isIPv6()
-
getRemoteIPAddress
InetAddress getRemoteIPAddress()
-
getRemotePort
int getRemotePort()
-
getMTU
int getMTU()
-
getNextPacketNumber
long getNextPacketNumber() throws IOException- 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
void fragmentsSent(long pktNum, int length, List<PacketBuilder.Fragment> fragments)
-
getFlags
byte getFlags()
-
-