Package net.i2p.router.crypto.ratchet
Interface RatchetPayload.PayloadCallback
- Enclosing class:
RatchetPayload
public static interface RatchetPayload.PayloadCallback
For all callbacks, recommend throwing exceptions only from the handshake.
Exceptions will get thrown out of processPayload() and prevent
processing of succeeding blocks.
-
Method Summary
Modifier and TypeMethodDescriptionvoidgotAck(int id, int n) voidvoidgotDateTime(long time) voidgotGarlic(GarlicClove clove) voidgotNextKey(NextSessionKey nextKey) voidgotOptions(byte[] options, boolean isHandshake) voidgotPadding(int paddingLength, int frameLength) For stats.voidgotPN(int pn) voidgotTermination(int reason) voidgotUnknown(int type, int len)
-
Method Details
-
gotDateTime
- Throws:
DataFormatException
-
gotGarlic
-
gotOptions
- Parameters:
isHandshake- true only for message 3 part 2- Throws:
DataFormatException
-
gotTermination
void gotTermination(int reason) - Parameters:
reason- 0-255
-
gotPN
void gotPN(int pn) - Parameters:
pn- 0-65535
-
gotNextKey
- Parameters:
nextKey- the next one
-
gotAck
void gotAck(int id, int n) - Since:
- 0.9.46
-
gotAckRequest
void gotAckRequest()- Since:
- 0.9.46
-
gotPadding
void gotPadding(int paddingLength, int frameLength) For stats.- Parameters:
paddingLength- the number of padding bytes, not including the 3-byte block headerframeLength- the total size of the frame, including all blocks and block headers
-
gotUnknown
void gotUnknown(int type, int len)
-