public static interface NTCP2Payload.PayloadCallback| Modifier and Type | Method and Description |
|---|---|
void | gotDateTime(long time)gotDateTime. |
void | gotI2NP(I2NPMessage msg)gotI2NP. |
void | gotOptions(byte[] options,
boolean isHandshake) |
void | gotPadding(int paddingLength,
int frameLength)For stats. |
void | gotRI(RouterInfo ri,
boolean isHandshake,
boolean flood) |
void | gotTermination(int reason,
long lastReceived) |
void | gotUnknown(int type,
int len)len). |
void gotDateTime(long time)
throws DataFormatExceptionDataFormatExceptionvoid gotI2NP(I2NPMessage msg) throws I2NPMessageException
I2NPMessageExceptionvoid gotOptions(byte[] options,
boolean isHandshake)
throws DataFormatExceptionisHandshake - true only for message 3 part 2DataFormatExceptionvoid 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 gotRI(RouterInfo ri, boolean isHandshake, boolean flood) throws DataFormatException
ri - will already be validatedisHandshake - true only for message 3 part 2DataFormatExceptionvoid gotTermination(int reason,
long lastReceived)lastReceived - in theory could wrap around to negative, but very unlikelyvoid gotUnknown(int type,
int len)