public static interface RatchetPayload.PayloadCallback| Modifier and Type | Method and Description |
|---|---|
void | gotAck(int id,
int n)Receive an ACK block. |
void | gotAckRequest()Receive an ACK request block. |
void | gotDateTime(long time)Receive a datetime block. |
void | gotGarlic(GarlicClove clove)Receive a garlic clove block. |
void | gotNextKey(NextSessionKey nextKey)Receive a next key block. |
void | gotOptions(byte[] options,
boolean isHandshake)Receive an options block. |
void | gotPadding(int paddingLength,
int frameLength)For stats. |
void | gotPN(int pn)Receive a packet number block. |
void | gotTermination(int reason)Receive a termination block. |
void | gotUnknown(int type,
int len)Receive an unknown block. |
void gotAck(int id,
int n)id - the key IDn - the countvoid gotAckRequest()
void gotDateTime(long time)
throws DataFormatExceptiontime - the timestampDataFormatException - on bad datavoid gotGarlic(GarlicClove clove)
clove - the garlic clovevoid gotNextKey(NextSessionKey nextKey)
nextKey - the next onevoid gotOptions(byte[] options,
boolean isHandshake)
throws DataFormatExceptionoptions - the option bytesisHandshake - true only for message 3 part 2DataFormatException - on bad datavoid 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 gotPN(int pn)
pn - 0-65535void gotTermination(int reason)
reason - 0-255void gotUnknown(int type,
int len)type - the block typelen - the block length