Packages that use Logging
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 Logging in net.i2p.i2ptunnel
Classes in net.i2p.i2ptunnel that implement LoggingModifier and TypeClassDescriptionclassManages I2PTunnelTasks and I2PSessions.classCoordinate the runtime operation and configuration of a single I2PTunnel.Fields in net.i2p.i2ptunnel declared as LoggingModifier and TypeFieldDescriptionprotected final LoggingI2PTunnelClientBase.lThe logging instance.protected final LoggingI2PTunnelServer.lClient-visible log channel: every lifecycle notice and warning reported to the I2P client (bad option values, unresolvable hosts, lingering connections).Methods in net.i2p.i2ptunnel with parameters of type LoggingModifier and TypeMethodDescriptionprotected 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.private voidI2PTunnel.clientRunError(String msg, String taskId, Logging l, IllegalArgumentException iae) Log a failed client tunnel configuration and propagate the error.private booleanI2PTunnel.closetask(int num, I2PTunnel.CloseMode mode, Logging l) Helper method to actually close the given task number (optionally forcing closure).private voidI2PTunnelHTTPBidirServer.finishSetupI2PTunnelHTTPBidirServer(Logging l, int proxyport) Completes the bidirectional server setup by initializing the client proxy.protected final InetAddressI2PTunnelClientBase.getListenHost(Logging l) Get the listen host address.private FileI2PTunnel.getPrivKeyFile(String fileArg, Logging l) Resolve a private key file argument relative to the config dir.private static voidI2PTunnel.makeKey(OutputStream writeTo, OutputStream pubDest, Logging l) Create a new destination, storing the destination and its private keys where instructed.private InetAddressI2PTunnel.parseServerHost(String hostArg, Logging l) Resolve a server host argument.private intI2PTunnel.parseServerPort(String portArg, Logging l) Parse a server port argument.private voidSpecify the i2cp username and password.voidRun the client on the given port number pointing at the specified destination (either the base64 of the destination or file:fileNameContainingDestination).voidI2PTunnel.runClientOptions(String[] args, Logging l) Configure the extra I2CP options to use in any subsequent I2CP sessions.voidClose the given task (or all tasks), optionally forcing them to die a hard deathvoidI2PTunnel.runCommand(String cmd, Logging l) Parses and executes a tunnel management command.private voidSpecify the i2cp host and port Deprecated - only used by CLIvoidI2PTunnel.runConnectClient(String[] args, Logging l) Run a CONNECT client on the given port numberprivate static voidI2PTunnel.runGenKeys(String[] args, Logging l) Generate a new keypair.private static voidI2PTunnel.runGenTextKeys(Logging l) Generate a new keypair.private static voidDisplay help information through the given logger.voidI2PTunnel.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.voidI2PTunnel.runHttpClient(String[] args, Logging l) Run an HTTP client on the given port numbervoidI2PTunnel.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.voidI2PTunnel.runIrcClient(String[] args, Logging l) Run an IRC client on the given port numbervoidI2PTunnel.runIrcServer(String[] args, Logging l) Same args as runServer (we should stop duplicating all this code...).private voidRetrieve a list of currently running tasks Deprecated - only used by CLIvoidI2PTunnel.runListenOn(String[] args, Logging l) Specify the hostname / IP address of the interface that the tunnels should bind toprivate voidPerform a lookup of the name specified Deprecated - only used by CLIprivate voidI2PTunnel.runOwnDest(String[] args, Logging l) Specify whether to use its own destination for each outgoing tunnel Deprecated - only used by CLIprivate voidStart up a ping task with the specified args (currently supporting -ns, -h, -l) Deprecated - only used by CLIprivate voidExit the JVM if there are no more tasks left running.voidI2PTunnel.runReadTimeout(String[] args, Logging l) Specify the read timeout going to be used for newly-created I2PSocketsprivate voidRun all of the commands in the given file (one command per line) Deprecated - only used by CLIvoidRun the server pointing at the host and port specified using the private i2p destination loaded from the specified file.voidI2PTunnel.runSOCKSIRCTunnel(String[] args, Logging l) Run an SOCKS IRC tunnel on the given port numbervoidI2PTunnel.runSOCKSTunnel(String[] args, Logging l) Run an SOCKS tunnel on the given port numbervoidI2PTunnel.runStreamrClient(String[] args, Logging l) Streamr client.voidI2PTunnel.runStreamrServer(String[] args, Logging l) Streamr server.voidI2PTunnel.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.private static voidI2PTunnel.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.private static voidI2PTunnel.writePubKey(Destination d, OutputStream o, Logging l) Write out the destination to the stream Deprecated - only used by CLI.Constructors in net.i2p.i2ptunnel with parameters of type LoggingModifierConstructorDescriptionI2Ping(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.Uses of Logging in net.i2p.i2ptunnel.irc
Fields in net.i2p.i2ptunnel.irc declared as LoggingModifier and TypeFieldDescriptionprivate final LoggingDCCClientManager.lSends status lines to the IRC client.Constructors in net.i2p.i2ptunnel.irc with parameters of type LoggingModifierConstructorDescriptionDCCClientManager(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 Logging in net.i2p.i2ptunnel.socks
Constructors in net.i2p.i2ptunnel.socks with parameters of type LoggingModifierConstructorDescriptionI2PSOCKSIRCTunnel(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.Uses of Logging in net.i2p.i2ptunnel.streamr
Constructors in net.i2p.i2ptunnel.streamr with parameters of type LoggingModifierConstructorDescriptionStreamrConsumer(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 Logging in net.i2p.i2ptunnel.udpTunnel
Fields in net.i2p.i2ptunnel.udpTunnel declared as LoggingModifier and TypeFieldDescriptionprotected LoggingI2PTunnelUDPClientBase.lLogging instance.protected LoggingI2PTunnelUDPServerBase.lThe logging facility the owning tunnel reports through.Methods in net.i2p.i2ptunnel.udpTunnel with parameters of type LoggingModifier and TypeMethodDescriptionprivate voidI2PTunnelUDPServerBase.init(InputStream privData, Logging l) Opens the session and wires up the source and sink.Constructors in net.i2p.i2ptunnel.udpTunnel with parameters of type LoggingModifierConstructorDescriptionI2PTunnelUDPClientBase(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.