public static interface RatchetPayload.PayloadCallback
Modifier and Type | Method and Description |
---|---|
void |
gotDateTime(long time) |
void |
gotGarlic(GarlicClove clove) |
void |
gotNextKey(NextSessionKey nextKey) |
void |
gotOptions(byte[] options,
boolean isHandshake) |
void |
gotPadding(int paddingLength,
int frameLength)
For stats.
|
void |
gotTermination(int reason,
long lastReceived) |
void |
gotUnknown(int type,
int len) |
void gotDateTime(long time) throws DataFormatException
DataFormatException
void gotGarlic(GarlicClove clove)
void gotOptions(byte[] options, boolean isHandshake) throws DataFormatException
isHandshake
- true only for message 3 part 2DataFormatException
void gotTermination(int reason, long lastReceived)
lastReceived
- in theory could wrap around to negative, but very unlikelyvoid gotNextKey(NextSessionKey nextKey)
nextKey
- the next onevoid gotPadding(int paddingLength, int frameLength)
paddingLength
- the number of padding bytes, not including the 3-byte block headerframeLength
- the total size of the frame, including all blocks and block headersvoid gotUnknown(int type, int len)