| Package | Description |
|---|---|
| net.i2p.sam | The SAM (Simple Anonymous Messaging) client API. |
| Modifier and Type | Method and Description |
|---|---|
SAMv3Handler | SessionRecord.getHandler()Get the SAM handler for this session. |
| Modifier and Type | Method and Description |
|---|---|
void | MasterSession.accept(SAMv3Handler handler,
boolean verbose) |
void | SAMv3StreamSession.accept(SAMv3Handler handler,
boolean verbose)Accept a single incoming I2P stream and pipe data through the handler's
socket. |
void | MasterSession.connectAsync(SAMv3Handler handler,
String dest,
Properties props) |
void | SAMv3StreamSession.connectAsync(SAMv3Handler handler,
String dest,
Properties props)Initiate an async STREAM CONNECT. |
(package private) static SocketAddress | SAMv3RawSession.getSocketAddress(Properties props,
SAMv3Handler handler)Get the socket address from session properties. |
(package private) void | SAMHandlerPool.register(SAMv3Handler handler)Register a v3 handler with the pool. |
(package private) void | SAMHandlerPool.unregister(SAMv3Handler handler)Remove a handler's socket from the pool. |
(package private) void | SAMBridge.unregisterHandlerFromPool(SAMv3Handler handler)Remove a v3 handler from the shared handler pool. |
| Constructor and Description |
|---|
MasterSession(String nick,
SAMv3DatagramServer dgServer,
SAMv3Handler handler,
Properties props)Build a Session according to information
registered with the given nickname. |
SAMv3DatagramSession(String nick,
Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenPort,
SAMv3DatagramServer dgServer)Build a Datagram Session on an existing i2p session
registered with the given nickname
Caller MUST call start(). |
SAMv3RawSession(String nick,
Properties props,
SAMv3Handler handler,
I2PSession isess,
int listenProtocol,
int listenPort,
SAMv3DatagramServer dgServer)Build a Raw Session on an existing i2p session
registered with the given nickname
Caller MUST call start(). |
SAMv3StreamSession(String login,
Properties props,
SAMv3Handler handler,
I2PSocketManager mgr,
int listenPort)Build a Stream Session on an existing I2P session
registered with the given nickname
Caller MUST call start(). |
SessionRecord(String dest,
Properties props,
SAMv3Handler handler)Create a new session record. |