Interface NTCP2Payload.PayloadCallback

All Known Implementing Classes:
InboundEstablishState
Enclosing class:
NTCP2Payload

public static interface NTCP2Payload.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 Type Method Description
    void gotDateTime​(long time)  
    void gotI2NP​(I2NPMessage msg)  
    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)