Package | Description |
---|---|
net.i2p.sam |
The SAM client API.
|
Modifier and Type | Method and Description |
---|---|
SAMv3Handler |
SessionRecord.getHandler() |
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.
|
void |
MasterSession.connect(SAMv3Handler handler,
String dest,
Properties props) |
void |
SAMv3StreamSession.connect(SAMv3Handler handler,
String dest,
Properties props)
Connect the SAM STREAM session to the specified Destination
for a single connection, using the socket stolen from the handler.
|
(package private) static SocketAddress |
SAMv3RawSession.getSocketAddress(Properties props,
SAMv3Handler handler) |
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) |