Package | Description |
---|---|
net.i2p.sam |
The SAM 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 STREAM on the socket stolen from the handler.
|
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.newSAMStreamSession(String destKeystream,
String direction,
Properties props) |
static Properties |
SAMUtils.parseParams(String args)
Parse SAM parameters, and put them into a Propetries 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(I2PSocketManager mgr,
Properties props,
SAMStreamReceiver recv,
int listenport)
Create a new SAM STREAM session on an existing socket manager.
|
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.
|
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().
|
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().
|