Package net.i2p.sam.client
Class SAMClientEventListenerImpl
java.lang.Object
net.i2p.sam.client.SAMClientEventListenerImpl
- All Implemented Interfaces:
SAMReader.SAMClientEventListener
- Direct Known Subclasses:
SAMEventHandler
Basic noop client event listener
-
Field Summary
Fields inherited from interface net.i2p.sam.client.SAMReader.SAMClientEventListener
NAMING_REPLY_INVALID_KEY, NAMING_REPLY_KEY_NOT_FOUND, NAMING_REPLY_OK, SESSION_STATUS_DUPLICATE_DEST, SESSION_STATUS_I2P_ERROR, SESSION_STATUS_INVALID_KEY, SESSION_STATUS_OK, STREAM_CLOSED_CANT_REACH_PEER, STREAM_CLOSED_I2P_ERROR, STREAM_CLOSED_OK, STREAM_CLOSED_PEER_NOT_FOUND, STREAM_CLOSED_TIMEOUT, STREAM_STATUS_CANT_REACH_PEER, STREAM_STATUS_I2P_ERROR, STREAM_STATUS_INVALID_KEY, STREAM_STATUS_OK, STREAM_STATUS_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
SAMClientEventListenerImpl
public SAMClientEventListenerImpl()
-
-
Method Details
-
destReplyReceived
- Specified by:
destReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
helloReplyReceived
- Specified by:
helloReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
namingReplyReceived
- Specified by:
namingReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
sessionStatusReceived
- Specified by:
sessionStatusReceived
in interfaceSAMReader.SAMClientEventListener
-
streamClosedReceived
- Specified by:
streamClosedReceived
in interfaceSAMReader.SAMClientEventListener
-
streamConnectedReceived
- Specified by:
streamConnectedReceived
in interfaceSAMReader.SAMClientEventListener
-
streamDataReceived
- Specified by:
streamDataReceived
in interfaceSAMReader.SAMClientEventListener
-
streamStatusReceived
- Specified by:
streamStatusReceived
in interfaceSAMReader.SAMClientEventListener
-
datagramReceived
public void datagramReceived(String dest, byte[] data, int offset, int length, int fromPort, int toPort) - Specified by:
datagramReceived
in interfaceSAMReader.SAMClientEventListener
-
rawReceived
public void rawReceived(byte[] data, int offset, int length, int fromPort, int toPort, int protocol) - Specified by:
rawReceived
in interfaceSAMReader.SAMClientEventListener
-
pingReceived
- Specified by:
pingReceived
in interfaceSAMReader.SAMClientEventListener
-
pongReceived
- Specified by:
pongReceived
in interfaceSAMReader.SAMClientEventListener
-
unknownMessageReceived
- Specified by:
unknownMessageReceived
in interfaceSAMReader.SAMClientEventListener
-