| Modifier and Type | Class and Description |
|---|---|
protected class |
I2PSource.Listener |
static class |
I2PSource.Protocol
Protocol enum for I2P source handling.
|
| Modifier and Type | Field and Description |
|---|---|
protected I2PSession |
sess |
protected Sink |
sink |
| Constructor and Description |
|---|
I2PSource(I2PSession sess)
Handles both REPLIABLE and RAW on any port
|
I2PSource(I2PSession sess,
I2PSource.Protocol protocol)
Listen on all I2CP ports.
|
I2PSource(I2PSession sess,
I2PSource.Protocol protocol,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
setSink(Sink sink)
Sets the sink for received I2P datagrams.
|
void |
start()
Starts the source to begin receiving datagrams.
|
protected final I2PSession sess
protected Sink sink
public I2PSource(I2PSession sess)
public I2PSource(I2PSession sess, I2PSource.Protocol protocol)
protocol - REPLIABLE, RAW, or BOTHpublic I2PSource(I2PSession sess, I2PSource.Protocol protocol, int port)
port - I2CP port or I2PSession.PORT_ANYprotocol - REPLIABLE, RAW, or BOTH