Package net.i2p.sam.client
Class SAMClientEventListenerImpl
- java.lang.Object
-
- net.i2p.sam.client.SAMClientEventListenerImpl
-
- All Implemented Interfaces:
SAMReader.SAMClientEventListener
- Direct Known Subclasses:
SAMEventHandler
public class SAMClientEventListenerImpl extends Object implements SAMReader.SAMClientEventListener
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
Constructors Constructor Description SAMClientEventListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
destReplyReceived
public void destReplyReceived(String publicKey, String privateKey)
- Specified by:
destReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
helloReplyReceived
public void helloReplyReceived(boolean ok, String version)
- Specified by:
helloReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
namingReplyReceived
public void namingReplyReceived(String name, String result, String value, String message)
- Specified by:
namingReplyReceived
in interfaceSAMReader.SAMClientEventListener
-
sessionStatusReceived
public void sessionStatusReceived(String result, String destination, String message)
- Specified by:
sessionStatusReceived
in interfaceSAMReader.SAMClientEventListener
-
streamClosedReceived
public void streamClosedReceived(String result, String id, String message)
- Specified by:
streamClosedReceived
in interfaceSAMReader.SAMClientEventListener
-
streamConnectedReceived
public void streamConnectedReceived(String remoteDestination, String id)
- Specified by:
streamConnectedReceived
in interfaceSAMReader.SAMClientEventListener
-
streamDataReceived
public void streamDataReceived(String id, byte[] data, int offset, int length)
- Specified by:
streamDataReceived
in interfaceSAMReader.SAMClientEventListener
-
streamStatusReceived
public void streamStatusReceived(String result, String id, String message)
- 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
public void pingReceived(String data)
- Specified by:
pingReceived
in interfaceSAMReader.SAMClientEventListener
-
pongReceived
public void pongReceived(String data)
- Specified by:
pongReceived
in interfaceSAMReader.SAMClientEventListener
-
unknownMessageReceived
public void unknownMessageReceived(String major, String minor, Properties params)
- Specified by:
unknownMessageReceived
in interfaceSAMReader.SAMClientEventListener
-
-