Package net.i2p.sam.client
Interface SAMReader.SAMClientEventListener
- All Known Implementing Classes:
SAMClientEventListenerImpl
,SAMEventHandler
- Enclosing class:
- SAMReader
public static interface SAMReader.SAMClientEventListener
Async event notification interface for SAM clients
-
Field Summary
Fields Modifier and Type Field Description static String
NAMING_REPLY_INVALID_KEY
static String
NAMING_REPLY_KEY_NOT_FOUND
static String
NAMING_REPLY_OK
static String
SESSION_STATUS_DUPLICATE_DEST
static String
SESSION_STATUS_I2P_ERROR
static String
SESSION_STATUS_INVALID_KEY
static String
SESSION_STATUS_OK
static String
STREAM_CLOSED_CANT_REACH_PEER
static String
STREAM_CLOSED_I2P_ERROR
static String
STREAM_CLOSED_OK
static String
STREAM_CLOSED_PEER_NOT_FOUND
static String
STREAM_CLOSED_TIMEOUT
static String
STREAM_STATUS_CANT_REACH_PEER
static String
STREAM_STATUS_I2P_ERROR
static String
STREAM_STATUS_INVALID_KEY
static String
STREAM_STATUS_OK
static String
STREAM_STATUS_TIMEOUT
-
Method Summary
Modifier and Type Method Description void
datagramReceived(String dest, byte[] data, int offset, int length, int fromPort, int toPort)
void
destReplyReceived(String publicKey, String privateKey)
void
helloReplyReceived(boolean ok, String version)
void
namingReplyReceived(String name, String result, String value, String message)
void
pingReceived(String data)
void
pongReceived(String data)
void
rawReceived(byte[] data, int offset, int length, int fromPort, int toPort, int protocol)
void
sessionStatusReceived(String result, String destination, String message)
void
streamClosedReceived(String result, String id, String message)
void
streamConnectedReceived(String remoteDestination, String id)
void
streamDataReceived(String id, byte[] data, int offset, int length)
void
streamStatusReceived(String result, String id, String message)
void
unknownMessageReceived(String major, String minor, Properties params)
-
Field Details
-
SESSION_STATUS_OK
- See Also:
- Constant Field Values
-
SESSION_STATUS_DUPLICATE_DEST
- See Also:
- Constant Field Values
-
SESSION_STATUS_I2P_ERROR
- See Also:
- Constant Field Values
-
SESSION_STATUS_INVALID_KEY
- See Also:
- Constant Field Values
-
STREAM_STATUS_OK
- See Also:
- Constant Field Values
-
STREAM_STATUS_CANT_REACH_PEER
- See Also:
- Constant Field Values
-
STREAM_STATUS_I2P_ERROR
- See Also:
- Constant Field Values
-
STREAM_STATUS_INVALID_KEY
- See Also:
- Constant Field Values
-
STREAM_STATUS_TIMEOUT
- See Also:
- Constant Field Values
-
STREAM_CLOSED_OK
- See Also:
- Constant Field Values
-
STREAM_CLOSED_CANT_REACH_PEER
- See Also:
- Constant Field Values
-
STREAM_CLOSED_I2P_ERROR
- See Also:
- Constant Field Values
-
STREAM_CLOSED_PEER_NOT_FOUND
- See Also:
- Constant Field Values
-
STREAM_CLOSED_TIMEOUT
- See Also:
- Constant Field Values
-
NAMING_REPLY_OK
- See Also:
- Constant Field Values
-
NAMING_REPLY_INVALID_KEY
- See Also:
- Constant Field Values
-
NAMING_REPLY_KEY_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Details
-
helloReplyReceived
-
sessionStatusReceived
-
streamStatusReceived
-
streamConnectedReceived
-
streamClosedReceived
-
streamDataReceived
-
namingReplyReceived
-
destReplyReceived
-
datagramReceived
-
rawReceived
void rawReceived(byte[] data, int offset, int length, int fromPort, int toPort, int protocol) -
pingReceived
-
pongReceived
-
unknownMessageReceived
-