| Package | Description |
|---|---|
| net.i2p.sam | The SAM (Simple Anonymous Messaging) client API. |
| 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. |
boolean | SAMSecureSessionInterface.approveOrDenySecureSession(Properties i2cpProps,
Properties props)Within this function, read and accept input from a user to approve a SAM
connection. |
boolean | SAMSecureSession.approveOrDenySecureSession(Properties i2cpProps,
Properties props)Authenticate based on the i2cp username/password. |
static SAMHandler | SAMHandlerFactory.createSAMHandler(SocketChannel s,
Properties i2cpProps,
SAMBridge parent)Return the right SAM handler depending on the protocol version
required by the client. |
(package private) SAMStreamSession | SAMv2Handler.newSAMv2StreamSession(String destKeystream,
String direction,
Properties props)New SAMv2 stream session. |
static Properties | SAMUtils.parseParams(String args)Parse SAM parameters, and put them into a Properties object
Modified from EepGet. |
void | MasterSession.startForwardingIncoming(Properties props,
boolean sendPorts) |
void | SAMv3StreamSession.startForwardingIncoming(Properties props,
boolean sendPorts)Forward sockets from I2P to the host/port provided. |
void | SAMv3StreamSession.stopForwardingIncoming()stop Forwarding Incoming connection coming from I2P |
| Constructor and Description |
|---|
MasterSession(String nick,
SAMv3DatagramServer dgServer,
SAMv3Handler handler,
Properties props)Build a Session according to information
registered with the given nickname. |
SAMStreamSession(InputStream destStream,
String dir,
Properties props,
SAMStreamReceiver recv)Create a new SAM STREAM session. |
SAMStreamSession(String dest,
String dir,
Properties props,
SAMStreamReceiver recv)Create a new SAM STREAM session. |
SAMv1Handler(SocketChannel s,
int verMajor,
int verMinor,
Properties i2cpProps,
SAMBridge parent)Create a new SAM version 1 handler. |
SAMv1Handler(SocketChannel s,
int verMajor,
int verMinor,
SAMBridge parent)Create a new SAM version 1 handler. |
SAMv2Handler(SocketChannel s,
int verMajor,
int verMinor,
Properties i2cpProps,
SAMBridge parent)Create a new SAM version 2 handler. |
SAMv2Handler(SocketChannel s,
int verMajor,
int verMinor,
SAMBridge parent)Create a new SAM version 2 handler with default I2CP properties. |
SAMv2StreamSession(InputStream destStream,
String dir,
Properties props,
SAMStreamReceiver recv)Create a new SAM STREAM session. |
SAMv2StreamSession(String dest,
String dir,
Properties props,
SAMStreamReceiver recv)Create a new SAM STREAM session. |
SAMv3DatagramSession(String nick,
SAMv3DatagramServer dgServer)build a DatagramSession according to informations registered
with the given nickname
Caller MUST call start(). |
SAMv3Handler(SocketChannel s,
int verMajor,
int verMinor,
Properties i2cpProps,
SAMBridge parent)Create a new SAM version 3 handler. |
SAMv3Handler(SocketChannel s,
int verMajor,
int verMinor,
SAMBridge parent)Create a new SAM version 3 handler. |
SAMv3StreamSession(String login)Create a new SAM STREAM session, according to information
registered with the given nickname
Caller MUST call start(). |