Packages that use I2PTunnel
Package
Description
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
IRC tunnel support: DCC and CTCP handling for IRC clients using a client tunnel.
SOCKS 4, 4a and 5 server implementations exposing I2P client tunnels to SOCKS clients.
StreamR adaptive-rate streaming tunnel: streams audio and video over a single I2P tunnel, adapting the encoder rate to the measured tunnel bandwidth.
Base classes for UDP client and server tunnels, mapping a local UDP port to an I2P tunnel through the sinks and sources in
net.i2p.i2ptunnel.udp.Uses of I2PTunnel in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as I2PTunnelModifier and TypeFieldDescriptionprivate final I2PTunnelTunnelController._tunnelThe tunnel object being controlled.I2PTunnelTask.tunnelThe I2PTunnel this task runs inside.Methods in net.i2p.i2ptunnel that return I2PTunnelModifier and TypeMethodDescriptionI2PTunnelTask.getTunnel()The I2PTunnel this task runs inside.TunnelController.getTunnel()The I2PTunnelMethods in net.i2p.i2ptunnel with parameters of type I2PTunnelModifier and TypeMethodDescriptionprotected static I2PSocketManagerI2PTunnelClientBase.buildSocketManager(I2PTunnel tunnel) Create a disconnected socket manager for the tunnel, with no private key file.protected static I2PSocketManagerI2PTunnelClientBase.buildSocketManager(I2PTunnel tunnel, String pkf) Create a disconnected socket manager for the tunnel, loading the persistent client dest from pkf if it is non-null.protected static I2PSocketManagerI2PTunnelClientBase.buildSocketManager(I2PTunnel tunnel, String pkf, Logging log) Create a disconnected socket manager for the tunnel, loading the persistent client dest from pkf if it is non-null, and logging any key file error to log.(package private) ThreadPoolExecutorTunnelControllerGroup.getClientRunnerExecutor(I2PTunnel tunnel, int ceiling) Get (creating and sizing on first use) the private runner pool for a client tunnel.protected static I2PSocketManagerI2PTunnelClientBase.getSocketManager(I2PTunnel tunnel, String pkf) This is ONLY for shared clients.private voidI2PTunnelServer.init(InetAddress host, int port, I2PTunnel tunnel) Opens the client socket and starts serving.voidI2PTunnelClient.optionsUpdated(I2PTunnel tunnel) Update the dests then call super.voidI2PTunnelClientBase.optionsUpdated(I2PTunnel tunnel) Update the I2PSocketManager.voidI2PTunnelHTTPClientBase.optionsUpdated(I2PTunnel tunnel) Update the outproxy list then call super.voidI2PTunnelHTTPServer.optionsUpdated(I2PTunnel tunnel) Called when tunnel options are updated.voidI2PTunnelIRCClient.optionsUpdated(I2PTunnel tunnel) Update the dests then call super.voidI2PTunnelServer.optionsUpdated(I2PTunnel tunnel) Update the I2PSocketManager.voidI2PTunnelTask.optionsUpdated(I2PTunnel tunnel) Notify the task that I2PTunnel's options have been updated.voidRebind this task to a different tunnel.Constructors in net.i2p.i2ptunnel with parameters of type I2PTunnelModifierConstructorDescriptionI2Ping(Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel) Construct a ping tunnel client over an existing command.I2PTunnelClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create a standard client tunnel listening on localPort, forwarding to the given destinations.I2PTunnelClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) The main constructor.I2PTunnelClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel, 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, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTPS proxy tunnel for connecting out to arbitrary destinations, with optional outproxy chaining.I2PTunnelHTTPBidirProxy(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) Create a bidirectional HTTP proxy tunnel on localPort, reusing the server's existing I2P socket manager.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel with a private key file.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel with an input stream for the private key.I2PTunnelHTTPBidirServer(InetAddress host, int port, int proxyport, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a bidirectional HTTP server tunnel.I2PTunnelHTTPClient(int localPort, Logging l, boolean ownDest, String wwwProxy, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP proxy client on the given local port.I2PTunnelHTTPClient(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring thei2cp.delayOpenoption).I2PTunnelHTTPClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) Create a new HTTP client tunnel.I2PTunnelHTTPClientBase(int localPort, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring thei2cp.delayOpenoption).I2PTunnelHTTPServer(InetAddress host, int port, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server from a private key file.I2PTunnelHTTPServer(InetAddress host, int port, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server from a private key stream.I2PTunnelHTTPServer(InetAddress host, int port, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Create an HTTP tunnel server with a private key string.I2PTunnelIRCClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create an IRC client on the given local port.I2PTunnelIRCServer(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Construct an IRC client tunnel server.I2PTunnelServer(InetAddress host, int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: the key file is read and a disconnected socket manager built here; the session is only connected, and the server socket only opened, by startRunning().I2PTunnelServer(InetAddress host, int port, InputStream privData, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: a disconnected socket manager is built from the already-open key stream here; the session is only connected, and the server socket only opened, by startRunning().I2PTunnelServer(InetAddress host, int port, String privData, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: the key is decoded and a disconnected socket manager is built here; the session is only connected, and the server socket only opened, byI2PTunnelServer.startRunning().I2PTunnelServer(InetAddress host, int port, I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Non-blocking: wraps a socket manager the caller has already built and connected, and marks the server open, so the caller is responsible for the session rather than this constructor.protectedI2PTunnelTask(String name, EventDispatcher notifyThis, I2PTunnel tunnel) Create a task bound to a tunnel.Uses of I2PTunnel in net.i2p.i2ptunnel.irc
Fields in net.i2p.i2ptunnel.irc declared as I2PTunnelModifier and TypeFieldDescriptionprivate final I2PTunnelDCCClientManager._tunnelThe IRC tunnel being served.Constructors in net.i2p.i2ptunnel.irc with parameters of type I2PTunnelModifierConstructorDescriptionDCCClientManager(I2PSocketManager sktMgr, Logging logging, EventDispatcher dispatch, I2PTunnel tunnel) Create a new manager for DCC client tunnels.I2PTunnelDCCClient(String dest, int localPort, int remotePort, Logging l, I2PSocketManager sktMgr, EventDispatcher notifyThis, I2PTunnel tunnel, long clientId) Create an IRC DCC client tunnel, offering one outbound file transfer connection to dest:remotePort.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.Uses of I2PTunnel in net.i2p.i2ptunnel.socks
Methods in net.i2p.i2ptunnel.socks with parameters of type I2PTunnelModifier and TypeMethodDescriptionvoidI2PSOCKSTunnel.optionsUpdated(I2PTunnel tunnel) Update the outproxy list then call super.Constructors in net.i2p.i2ptunnel.socks with parameters of type I2PTunnelModifierConstructorDescriptionI2PSOCKSIRCTunnel(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Construct a SOCKS IRC tunnel.I2PSOCKSTunnel(int localPort, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) Create a SOCKS proxy on the given local port.SOCKSUDPTunnel(I2PTunnel tunnel) Set up a tunnel with no UDP side yet.Uses of I2PTunnel in net.i2p.i2ptunnel.streamr
Constructors in net.i2p.i2ptunnel.streamr with parameters of type I2PTunnelModifierConstructorDescriptionStreamrConsumer(InetAddress host, int port, String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a Streamr consumer that receives data from I2P and forwards it to a UDP destination.StreamrProducer(int port, File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a Streamr producer that receives UDP data and forwards it through I2P.Uses of I2PTunnel in net.i2p.i2ptunnel.udpTunnel
Constructors in net.i2p.i2ptunnel.udpTunnel with parameters of type I2PTunnelModifierConstructorDescriptionI2PTunnelUDPClientBase(String destination, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Set up the I2P client, destination keypair, and I2CP session for this tunnel.I2PTunnelUDPServerBase(File privkey, String privkeyname, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel) Creates a UDP server tunnel using the private key in the given file.