パッケージ | 説明 |
---|---|
net.i2p.i2ptunnel |
Implementation of preconfigured tunnels, both for clients and servers,
and a UI for adding more and editing the configuration.
|
net.i2p.i2ptunnel.irc |
Filters for the IRC client tunnel, and DCC handlers.
|
net.i2p.i2ptunnel.socks |
SOCKS 4, 4a, and 5 client tunnels.
|
net.i2p.i2ptunnel.streamr |
Special-purpose client and server tunnels for streaming UDP clients and servers,
generally for audio and video streaming.
|
net.i2p.i2ptunnel.udpTunnel | |
net.i2p.util |
These classes define the several useful utilities used
throughout the router and applications.
|
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
I2Ping |
Warning - not necessarily a stable API.
|
class |
I2PTunnel |
An I2PTunnel tracks one or more I2PTunnelTasks and one or more I2PSessions.
|
class |
I2PTunnelClient |
|
class |
I2PTunnelClientBase |
|
class |
I2PTunnelConnectClient |
Supports the following:
|
class |
I2PTunnelHTTPBidirProxy |
Reuse HTTP server's I2PSocketManager for a proxy with no outproxy capability.
|
class |
I2PTunnelHTTPBidirServer |
|
class |
I2PTunnelHTTPClient |
Act as a mini HTTP proxy, handling various different types of requests,
forwarding them through I2P appropriately, and displaying the reply.
|
class |
I2PTunnelHTTPClientBase |
Common things for HTTPClient and ConnectClient
Retrofit over them in 0.8.2
|
class |
I2PTunnelHTTPServer |
Simple extension to the I2PTunnelServer that filters the HTTP
headers sent from the client to the server, replacing the Host
header with whatever this instance has been configured with, and
if the browser set Accept-Encoding: x-i2p-gzip, gzip the http
message body and set Content-Encoding: x-i2p-gzip.
|
class |
I2PTunnelIRCClient |
Todo: Can we extend I2PTunnelClient instead and remove some duplicated code?
|
class |
I2PTunnelIRCServer |
Simple extension to the I2PTunnelServer that filters the registration
sequence to pass the destination hash of the client through as the hostname,
so an IRC Server may track users across nick changes.
|
class |
I2PTunnelServer |
|
class |
I2PTunnelTask |
Either a Server or a Client.
|
コンストラクタ | 説明 |
---|---|
I2Ping(Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
tunnel.getOptions must contain "command".
|
I2PTunnelClient(int localPort,
java.lang.String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
java.lang.String pkf) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
java.lang.String handlerName,
I2PTunnel tunnel) |
The main constructor.
|
I2PTunnelClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
java.lang.String handlerName,
I2PTunnel tunnel,
java.lang.String pkf) |
Use this to build a client with a persistent private key.
|
I2PTunnelClientBase(int localPort,
Logging l,
I2PSocketManager sktMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
This constructor is used to add a client to an existing socket manager.
|
I2PTunnelConnectClient(int localPort,
Logging l,
boolean ownDest,
java.lang.String wwwProxy,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelHTTPBidirProxy(int localPort,
Logging l,
I2PSocketManager sockMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelHTTPBidirServer(java.net.InetAddress host,
int port,
int proxyport,
java.io.File privkey,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelHTTPBidirServer(java.net.InetAddress host,
int port,
int proxyport,
java.io.InputStream privData,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelHTTPBidirServer(java.net.InetAddress host,
int port,
int proxyport,
java.lang.String privData,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelHTTPClient(int localPort,
Logging l,
boolean ownDest,
java.lang.String wwwProxy,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelHTTPClient(int localPort,
Logging l,
I2PSocketManager sockMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
This constructor always starts the tunnel (ignoring the i2cp.delayOpen option).
|
I2PTunnelHTTPClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
java.lang.String handlerName,
I2PTunnel tunnel) |
|
I2PTunnelHTTPClientBase(int localPort,
Logging l,
I2PSocketManager sktMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
This constructor always starts the tunnel (ignoring the i2cp.delayOpen option).
|
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.File privkey,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.InputStream privData,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.lang.String privData,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelIRCClient(int localPort,
java.lang.String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
java.lang.String pkf) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelIRCServer(java.net.InetAddress host,
int port,
java.io.File privkey,
java.lang.String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelServer(java.net.InetAddress host,
int port,
java.io.File privkey,
java.lang.String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Non-blocking
|
I2PTunnelServer(java.net.InetAddress host,
int port,
java.io.InputStream privData,
java.lang.String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Non-blocking
|
I2PTunnelServer(java.net.InetAddress host,
int port,
java.lang.String privData,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Non-blocking
|
I2PTunnelServer(java.net.InetAddress host,
int port,
I2PSocketManager sktMgr,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Non-blocking
|
I2PTunnelTask(java.lang.String name,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
DCCClientManager |
Start, track, and expire the I2PTunnelDCCClients.
|
class |
EventReceiver |
An implementation of the EventDispatcher interface for
receiving events via in-line notifyEvent() only.
|
class |
I2PTunnelDCCClient |
A standard client, using an existing socket manager.
|
class |
I2PTunnelDCCServer |
A standard server that only answers for registered ports,
and each port can only be used once.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
EventDispatcher |
EventReceiver.getEventDispatcher() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
EventReceiver.attachEventDispatcher(EventDispatcher ev) |
|
void |
EventReceiver.detachEventDispatcher(EventDispatcher ev) |
コンストラクタ | 説明 |
---|---|
DCCClientManager(I2PSocketManager sktMgr,
Logging logging,
EventDispatcher dispatch,
I2PTunnel tunnel) |
|
I2PTunnelDCCClient(java.lang.String dest,
int localPort,
int remotePort,
Logging l,
I2PSocketManager sktMgr,
EventDispatcher notifyThis,
I2PTunnel tunnel,
long clientId) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
I2PTunnelDCCServer(I2PSocketManager sktMgr,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
There's no support for unsolicited incoming I2P connections,
so there's no server host or port parameters.
|
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
I2PSOCKSIRCTunnel |
|
class |
I2PSOCKSTunnel |
|
class |
SOCKSUDPTunnel |
A Datagram Tunnel that can have multiple bidirectional ports on the UDP side.
|
コンストラクタ | 説明 |
---|---|
I2PSOCKSIRCTunnel(int localPort,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
java.lang.String pkf) |
|
I2PSOCKSTunnel(int localPort,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
java.lang.String pkf) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
StreamrConsumer |
Compared to a standard I2PTunnel,
this acts like a client on the I2P side (no privkey file)
but a server on the UDP side (sends to a configured host/port)
|
class |
StreamrProducer |
Compared to a standard I2PTunnel,
this acts like a server on the I2P side (persistent privkey file)
but a client on the UDP side (receives on a configured port)
|
コンストラクタ | 説明 |
---|---|
StreamrConsumer(java.net.InetAddress host,
int port,
java.lang.String destination,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
StreamrProducer(int port,
java.io.File privkey,
java.lang.String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
I2PTunnelUDPClientBase |
Base client class that sets up an I2P Datagram client destination.
|
class |
I2PTunnelUDPServerBase |
Base client class that sets up an I2P Datagram server destination.
|
コンストラクタ | 説明 |
---|---|
I2PTunnelUDPClientBase(java.lang.String destination,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
|
I2PTunnelUDPServerBase(boolean verify,
java.io.File privkey,
java.lang.String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
修飾子とタイプ | クラス | 説明 |
---|---|---|
class |
EventDispatcherImpl |
An implementation of the EventDispatcher interface.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
EventDispatcher |
EventDispatcher.getEventDispatcher() |
Get an object to be used to deliver events (usually
this , but YMMV). |
EventDispatcher |
EventDispatcherImpl.getEventDispatcher() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
EventDispatcher.attachEventDispatcher(EventDispatcher iev) |
Attach an EventDispatcher object to the events dispatching chain.
|
void |
EventDispatcherImpl.attachEventDispatcher(EventDispatcher ev) |
|
void |
EventDispatcher.detachEventDispatcher(EventDispatcher iev) |
Detach the specified EventDispatcher object from the events dispatching chain.
|
void |
EventDispatcherImpl.detachEventDispatcher(EventDispatcher ev) |