Package | Description |
---|---|
net.i2p.i2ptunnel | |
net.i2p.i2ptunnel.socks | |
net.i2p.i2ptunnel.streamr | |
net.i2p.i2ptunnel.udpTunnel |
Modifier and Type | Class and Description |
---|---|
class |
I2PTunnel
Todo: Most events are not listened to elsewhere, so error propagation is poor
|
class |
I2PTunnelGUI
AWT gui since kaffe doesn't support swing yet
|
class |
TunnelController
Coordinate the runtime operation and configuration of a tunnel.
|
Modifier and Type | Field and Description |
---|---|
protected Logging |
I2PTunnelClientBase.l |
Modifier and Type | Method and Description |
---|---|
protected static I2PSocketManager |
I2PTunnelClientBase.buildSocketManager(I2PTunnel tunnel,
String pkf,
Logging log) |
protected InetAddress |
I2PTunnelClientBase.getListenHost(Logging l) |
static void |
I2PTunnel.makeKey(OutputStream writeTo,
OutputStream pubDest,
Logging l)
Create a new destination, storing the destination and its private keys where
instructed
Deprecated - only used by CLI
|
void |
I2PTunnel.runClient(String[] args,
Logging l)
Run the client on the given port number pointing at the specified destination
(either the base64 of the destination or file:fileNameContainingDestination).
|
void |
I2PTunnel.runClientOptions(String[] args,
Logging l)
Configure the extra I2CP options to use in any subsequent I2CP sessions.
|
void |
I2PTunnel.runClose(String[] args,
Logging l)
Close the given task (or all tasks), optionally forcing them to die a hard
death
Sets the event "closeResult" = "ok" after the closing is complete
|
void |
I2PTunnel.runCommand(String cmd,
Logging l) |
void |
I2PTunnel.runConfig(String[] args,
Logging l)
Specify the i2cp host and port
Sets the event "configResult" = "ok" or "error" after the configuration has been specified
|
void |
I2PTunnel.runConnectClient(String[] args,
Logging l)
Run a CONNECT client on the given port number
|
void |
I2PTunnel.runGenKeys(String[] args,
Logging l)
Generate a new keypair
Sets the event "genkeysResult" = "ok" or "error" after the generation is complete
|
void |
I2PTunnel.runGenTextKeys(Logging l)
Generate a new keypair
Sets the event "privateKey" = base64 of the privateKey stream and
sets the event "publicDestination" = base64 of the destination
|
void |
I2PTunnel.runHelp(Logging l)
Display help information through the given logger.
|
void |
I2PTunnel.runHttpBidirServer(String[] args,
Logging l)
Run the HTTP server pointing at the host and port specified using the private i2p
destination loaded from the specified file, replacing the HTTP headers
so that the Host: specified is the one spoofed.
|
void |
I2PTunnel.runHttpClient(String[] args,
Logging l)
Run an HTTP client on the given port number
Sets the event "httpclientTaskId" = Integer(taskId) after the tunnel has been started (or -1 on error).
|
void |
I2PTunnel.runHttpServer(String[] args,
Logging l)
Run the HTTP server pointing at the host and port specified using the private i2p
destination loaded from the specified file, replacing the HTTP headers
so that the Host: specified is the one spoofed.
|
void |
I2PTunnel.runIrcClient(String[] args,
Logging l)
Run an IRC client on the given port number
Sets the event "ircclientTaskId" = Integer(taskId) after the tunnel has been started (or -1 on error).
|
void |
I2PTunnel.runIrcServer(String[] args,
Logging l)
Same args as runServer
(we should stop duplicating all this code...)
|
void |
I2PTunnel.runList(Logging l)
Retrieve a list of currently running tasks
Sets the event "listDone" = "done" after dumping the tasks to
the logger
|
void |
I2PTunnel.runListenOn(String[] args,
Logging l)
Specify the hostname / IP address of the interface that the tunnels should bind to
Sets the event "listen_onResult" = "ok" or "error" after the interface has been specified
|
void |
I2PTunnel.runLookup(String[] args,
Logging l)
Perform a lookup of the name specified
Sets the event "lookupResult" = base64 of the destination, or an error message
|
void |
I2PTunnel.runOwnDest(String[] args,
Logging l)
Specify whether to use its own destination for each outgoing tunnel
Sets the event "owndestResult" = "ok" or "error" after the configuration has been specified
|
void |
I2PTunnel.runPing(String allargs,
Logging l)
Start up a ping task with the specified args (currently supporting -ns, -h, -l)
Sets the event "pingTaskId" = Integer of the taskId, or -1
|
void |
I2PTunnel.runQuit(Logging l)
Exit the JVM if there are no more tasks left running.
|
void |
I2PTunnel.runReadTimeout(String[] args,
Logging l)
Specify the read timeout going to be used for newly-created I2PSockets
Sets the event "read_timeoutResult" = "ok" or "error" after the interface has been specified
|
void |
I2PTunnel.runRun(String[] args,
Logging l)
Run all of the commands in the given file (one command per line)
Sets the event "runResult" = "ok" or "error" after the closing is complete
|
void |
I2PTunnel.runServer(String[] args,
Logging l)
Run the server pointing at the host and port specified using the private i2p
destination loaded from the specified file.
|
void |
I2PTunnel.runSOCKSIRCTunnel(String[] args,
Logging l)
Run an SOCKS IRC tunnel on the given port number
|
void |
I2PTunnel.runSOCKSTunnel(String[] args,
Logging l)
Run an SOCKS tunnel on the given port number
Sets the event "sockstunnelTaskId" = Integer(taskId) after the
tunnel has been started (or -1 on error).
|
void |
I2PTunnel.runStreamrClient(String[] args,
Logging l)
Streamr client
|
void |
I2PTunnel.runStreamrServer(String[] args,
Logging l)
Streamr server
|
void |
I2PTunnel.runTextServer(String[] args,
Logging l)
Run the server pointing at the host and port specified using the private i2p
destination loaded from the given base64 stream.
|
static void |
I2PTunnel.showKey(InputStream readFrom,
OutputStream pubDest,
Logging l)
Read in the given destination, display it, and write it to the given location
Deprecated - only used by CLI
|
Constructor and Description |
---|
I2Ping(String cmd,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelClient(int localPort,
String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf) |
I2PTunnelClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
String handlerName,
I2PTunnel tunnel) |
I2PTunnelClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
String handlerName,
I2PTunnel tunnel,
String pkf) |
I2PTunnelClientBase(int localPort,
Logging l,
I2PSocketManager sktMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
I2PTunnelConnectClient(int localPort,
Logging l,
boolean ownDest,
String wwwProxy,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPBidirProxy(int localPort,
Logging l,
I2PSocketManager sockMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
I2PTunnelHTTPBidirServer(InetAddress host,
int port,
int proxyport,
File privkey,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPBidirServer(InetAddress host,
int port,
int proxyport,
InputStream privData,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPBidirServer(InetAddress host,
int port,
int proxyport,
String privData,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPClient(int localPort,
Logging l,
boolean ownDest,
String wwwProxy,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPClient(int localPort,
Logging l,
I2PSocketManager sockMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
I2PTunnelHTTPClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
String handlerName,
I2PTunnel tunnel) |
I2PTunnelHTTPClientBase(int localPort,
Logging l,
I2PSocketManager sktMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
I2PTunnelHTTPServer(InetAddress host,
int port,
File privkey,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPServer(InetAddress host,
int port,
InputStream privData,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPServer(InetAddress host,
int port,
String privData,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelIRCClient(int localPort,
String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf) |
I2PTunnelIRCServer(InetAddress host,
int port,
File privkey,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelServer(InetAddress host,
int port,
File privkey,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelServer(InetAddress host,
int port,
InputStream privData,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelServer(InetAddress host,
int port,
String privData,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Constructor and Description |
---|
I2PSOCKSIRCTunnel(int localPort,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf) |
I2PSOCKSTunnel(int localPort,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf) |
Constructor and Description |
---|
StreamrConsumer(InetAddress host,
int port,
String destination,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
StreamrProducer(int port,
File privkey,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Modifier and Type | Field and Description |
---|---|
protected Logging |
I2PTunnelUDPClientBase.l |
protected Logging |
I2PTunnelUDPServerBase.l |
Constructor and Description |
---|
I2PTunnelUDPClientBase(String destination,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelUDPServerBase(boolean verify,
File privkey,
String privkeyname,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |