Package net.i2p.sam.client
Interface SAMReader.SAMClientEventListener
-
- All Known Implementing Classes:
SAMClientEventListenerImpl,SAMEventHandler
- Enclosing class:
- SAMReader
public static interface SAMReader.SAMClientEventListenerAsync event notification interface for SAM clients
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMING_REPLY_INVALID_KEYstatic StringNAMING_REPLY_KEY_NOT_FOUNDstatic StringNAMING_REPLY_OKstatic StringSESSION_STATUS_DUPLICATE_DESTstatic StringSESSION_STATUS_I2P_ERRORstatic StringSESSION_STATUS_INVALID_KEYstatic StringSESSION_STATUS_OKstatic StringSTREAM_CLOSED_CANT_REACH_PEERstatic StringSTREAM_CLOSED_I2P_ERRORstatic StringSTREAM_CLOSED_OKstatic StringSTREAM_CLOSED_PEER_NOT_FOUNDstatic StringSTREAM_CLOSED_TIMEOUTstatic StringSTREAM_STATUS_CANT_REACH_PEERstatic StringSTREAM_STATUS_I2P_ERRORstatic StringSTREAM_STATUS_INVALID_KEYstatic StringSTREAM_STATUS_OKstatic StringSTREAM_STATUS_TIMEOUT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddatagramReceived(String dest, byte[] data, int offset, int length, int fromPort, int toPort)voiddestReplyReceived(String publicKey, String privateKey)voidhelloReplyReceived(boolean ok, String version)voidnamingReplyReceived(String name, String result, String value, String message)voidpingReceived(String data)voidpongReceived(String data)voidrawReceived(byte[] data, int offset, int length, int fromPort, int toPort, int protocol)voidsessionStatusReceived(String result, String destination, String message)voidstreamClosedReceived(String result, String id, String message)voidstreamConnectedReceived(String remoteDestination, String id)voidstreamDataReceived(String id, byte[] data, int offset, int length)voidstreamStatusReceived(String result, String id, String message)voidunknownMessageReceived(String major, String minor, Properties params)
-
-
-
Field Detail
-
SESSION_STATUS_OK
static final String SESSION_STATUS_OK
- See Also:
- Constant Field Values
-
SESSION_STATUS_DUPLICATE_DEST
static final String SESSION_STATUS_DUPLICATE_DEST
- See Also:
- Constant Field Values
-
SESSION_STATUS_I2P_ERROR
static final String SESSION_STATUS_I2P_ERROR
- See Also:
- Constant Field Values
-
SESSION_STATUS_INVALID_KEY
static final String SESSION_STATUS_INVALID_KEY
- See Also:
- Constant Field Values
-
STREAM_STATUS_OK
static final String STREAM_STATUS_OK
- See Also:
- Constant Field Values
-
STREAM_STATUS_CANT_REACH_PEER
static final String STREAM_STATUS_CANT_REACH_PEER
- See Also:
- Constant Field Values
-
STREAM_STATUS_I2P_ERROR
static final String STREAM_STATUS_I2P_ERROR
- See Also:
- Constant Field Values
-
STREAM_STATUS_INVALID_KEY
static final String STREAM_STATUS_INVALID_KEY
- See Also:
- Constant Field Values
-
STREAM_STATUS_TIMEOUT
static final String STREAM_STATUS_TIMEOUT
- See Also:
- Constant Field Values
-
STREAM_CLOSED_OK
static final String STREAM_CLOSED_OK
- See Also:
- Constant Field Values
-
STREAM_CLOSED_CANT_REACH_PEER
static final String STREAM_CLOSED_CANT_REACH_PEER
- See Also:
- Constant Field Values
-
STREAM_CLOSED_I2P_ERROR
static final String STREAM_CLOSED_I2P_ERROR
- See Also:
- Constant Field Values
-
STREAM_CLOSED_PEER_NOT_FOUND
static final String STREAM_CLOSED_PEER_NOT_FOUND
- See Also:
- Constant Field Values
-
STREAM_CLOSED_TIMEOUT
static final String STREAM_CLOSED_TIMEOUT
- See Also:
- Constant Field Values
-
NAMING_REPLY_OK
static final String NAMING_REPLY_OK
- See Also:
- Constant Field Values
-
NAMING_REPLY_INVALID_KEY
static final String NAMING_REPLY_INVALID_KEY
- See Also:
- Constant Field Values
-
NAMING_REPLY_KEY_NOT_FOUND
static final String NAMING_REPLY_KEY_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
helloReplyReceived
void helloReplyReceived(boolean ok, String version)
-
sessionStatusReceived
void sessionStatusReceived(String result, String destination, String message)
-
streamDataReceived
void streamDataReceived(String id, byte[] data, int offset, int length)
-
namingReplyReceived
void namingReplyReceived(String name, String result, String value, String message)
-
datagramReceived
void datagramReceived(String dest, byte[] data, int offset, int length, int fromPort, int toPort)
-
rawReceived
void rawReceived(byte[] data, int offset, int length, int fromPort, int toPort, int protocol)
-
pingReceived
void pingReceived(String data)
-
pongReceived
void pongReceived(String data)
-
unknownMessageReceived
void unknownMessageReceived(String major, String minor, Properties params)
-
-