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 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
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 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
-