Packages that use I2PSocketManager
Package
Description
Address book application for fetching and maintaining I2P host databases from subscription sources.
API, interfaces, and factory for a TCP-like (reliable, authenticated, in order) set of sockets for communicating over IP-like (unreliable, unauthenticated, unordered) I2P messages.
Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
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.
Minimal embedded HTTP server used by the I2PTunnel local admin interface.
The SAM bridge: a simple text protocol server letting applications in any language use I2P streaming and datagram sessions without implementing the Invisible Internet Client Protocol (I2CP).
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of I2PSocketManager in net.i2p.addressbook
Fields in net.i2p.addressbook declared as I2PSocketManagerModifier and TypeFieldDescriptionprivate I2PSocketManagerHostChecker._sharedPingSocketManagerShared socket manager for the pings.Uses of I2PSocketManager in net.i2p.client.streaming
Fields in net.i2p.client.streaming declared as I2PSocketManagerModifier and TypeFieldDescriptionprotected final I2PSocketManagerAcceptingChannel._socketManagerSocket manager for this channel.private final I2PSocketManagerI2PSocketEepGet._socketManagerThe manager used to open the connection.Methods in net.i2p.client.streaming that return I2PSocketManagerModifier and TypeMethodDescriptionstatic I2PSocketManagerI2PSocketManagerFactory.createDisconnectedManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts) Create a disconnected socket manager using the destination loaded from the given private key stream, or null for a transient destination.static I2PSocketManagerI2PSocketManagerFactory.createDisconnectedManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter) Create a disconnected socket manager using the destination loaded from the given private key stream, or null for a transient destination.static I2PSocketManagerI2PSocketManagerFactory.createManager()Create a socket manager using a brand new destination connected to the I2CP router on the local machine on the default port (7654).static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream) Create a socket manager using the destination loaded from the given private key stream and connected to the default I2CP host and port.static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts) Create a socket manager using the destination loaded from the given private key stream and connected to the I2CP router on the specified machine on the given port.private static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts, boolean connect, IncomingConnectionFilter filter) Create a socket manager using the destination loaded from the given private key stream and connected to the I2CP router on the specified machine on the given port.static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter) Create a socket manager using the destination loaded from the given private key stream and connected to the I2CP router on the specified machine on the given port.static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, Properties opts) Create a socket manager using the destination loaded from the given private key stream and connected to the default I2CP host and port.static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, Properties opts, IncomingConnectionFilter filter) Create a socket manager using the destination loaded from the given private key stream and connected to the default I2CP host and port.static I2PSocketManagerI2PSocketManagerFactory.createManager(InputStream myPrivateKeyStream, IncomingConnectionFilter filter) Create a socket manager using the destination loaded from the given private key stream and connected to the default I2CP host and port with the specified connection filter.static I2PSocketManagerI2PSocketManagerFactory.createManager(String host, int port) Create a socket manager using a brand new destination connected to the I2CP router on the specified host and port.static I2PSocketManagerI2PSocketManagerFactory.createManager(String i2cpHost, int i2cpPort, Properties opts) Create a socket manager using a brand new destination connected to the I2CP router on the given machine reachable through the given port.static I2PSocketManagerI2PSocketManagerFactory.createManager(String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter) Create a socket manager using a brand new destination connected to the I2CP router on the given machine reachable through the given port with the specified connection filter.static I2PSocketManagerI2PSocketManagerFactory.createManager(String host, int port, IncomingConnectionFilter filter) Create a socket manager using a brand new destination connected to the I2CP router on the specified host and port with the specified connection filter.static I2PSocketManagerI2PSocketManagerFactory.createManager(Properties opts) Create a socket manager using a brand new destination connected to the I2CP router on the local machine on the default port (7654).static I2PSocketManagerI2PSocketManagerFactory.createManager(Properties opts, IncomingConnectionFilter filter) Create a socket manager using a brand new destination connected to the I2CP router on the local machine on the default port (7654).private static I2PSocketManagerI2PSocketManagerFactory.createManager(I2PSession session, Properties opts, String name, IncomingConnectionFilter filter) Wraps a session as a socket manager.static I2PSocketManagerI2PSocketManagerFactory.createManager(IncomingConnectionFilter filter) Create a socket manager using a brand new destination connected to the I2CP router on the local machine on the default port (7654) with the specified incoming connection filter.I2PServerSocket.getManager()Access the manager which is coordinating the server socket.Constructors in net.i2p.client.streaming with parameters of type I2PSocketManagerModifierConstructorDescriptionprotectedAcceptingChannel(I2PSocketManager manager) Create a new accepting channel.I2PSocketEepGet(I2PAppContext ctx, I2PSocketManager mgr, int numRetries, long minSize, long maxSize, String outputFile, OutputStream outputStream, String url) Creates an I2PSocketEepGet with full configuration.I2PSocketEepGet(I2PAppContext ctx, I2PSocketManager mgr, int numRetries, String outputFile, String url) Creates an I2PSocketEepGet with default size limits.Uses of I2PSocketManager in net.i2p.client.streaming.impl
Classes in net.i2p.client.streaming.impl that implement I2PSocketManagerModifier and TypeClassDescriptionclassCentralize the coordination and multiplexing of the local client's streaming.Methods in net.i2p.client.streaming.impl that return I2PSocketManagerModifier and TypeMethodDescriptionI2PServerSocketFull.getManager()Socket manager that owns this server socket.Uses of I2PSocketManager in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as I2PSocketManagerModifier and TypeFieldDescriptionprivate static I2PSocketManagerI2PTunnelClientBase.socketManagerThis is ONLY for shared clients.protected I2PSocketManagerI2PTunnelClientBase.sockMgrThe socket manager.protected final I2PSocketManagerI2PTunnelServer.sockMgrBuilds the outbound sockets used to reach each configured destination.Methods in net.i2p.i2ptunnel that return I2PSocketManagerModifier and TypeMethodDescriptionprotected I2PSocketManagerI2PTunnelClientBase.buildSocketManager()For NON-SHARED clients (ownDest = true).protected 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.private I2PSocketManagerI2PTunnelServer.createManager(InputStream privData) Create the socket manager from the private key data.I2PTunnelClientBase.getSocketManager()Returns the I2PSocketManager for this task.protected static I2PSocketManagerI2PTunnelClientBase.getSocketManager(I2PTunnel tunnel, String pkf) This is ONLY for shared clients.I2PTunnelServer.getSocketManager()Return the socket manager, or null if destroyed.I2PTunnelTask.getSocketManager()Returns the I2PSocketManager for this task, or null if not applicable.Methods in net.i2p.i2ptunnel with parameters of type I2PSocketManagerModifier and TypeMethodDescriptionprivate I2PSessionI2PTunnelServer.addSubsession(I2PSocketManager sMgr, String alt) Add an alternate EdDSA_SHA512_Ed25519 subsession alongside a DSA_SHA1 primary session.Constructors in net.i2p.i2ptunnel with parameters of type I2PSocketManagerModifierConstructorDescriptionI2PTunnelClientBase(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.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.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, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) This constructor always starts the tunnel (ignoring thei2cp.delayOpenoption).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 I2PSocketManager in net.i2p.i2ptunnel.irc
Fields in net.i2p.i2ptunnel.irc declared as I2PSocketManagerModifier and TypeFieldDescriptionprivate final I2PSocketManagerDCCClientManager.sockMgrOpens the DCC tunnels.Constructors in net.i2p.i2ptunnel.irc with parameters of type I2PSocketManagerModifierConstructorDescriptionDCCClientManager(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 I2PSocketManager in net.i2p.i2ptunnel.localServer
Methods in net.i2p.i2ptunnel.localServer with parameters of type I2PSocketManagerModifier and TypeMethodDescriptionstatic voidLocalHTTPServer.serveLocalFile(I2PAppContext context, I2PSocketManager sockMgr, OutputStream out, String method, String targetRequest, String query, String proxyNonce, boolean allowGzip) Very simple web server.Uses of I2PSocketManager in net.i2p.sam
Fields in net.i2p.sam declared as I2PSocketManagerModifier and TypeFieldDescriptionprotected final I2PSocketManagerSAMStreamSession.socketMgrThe socket manager used for outgoing connections.Constructors in net.i2p.sam with parameters of type I2PSocketManagerModifierConstructorDescriptionprotectedSAMStreamSession(I2PSocketManager mgr, Properties props, SAMStreamReceiver recv, int listenport) Create a new SAM STREAM session on an existing socket manager.SAMv3StreamSession(String login, Properties props, SAMv3Handler handler, I2PSocketManager mgr, int listenPort) Build a Stream Session on an existing I2P session registered with the given nicknameUses of I2PSocketManager in org.klomp.snark
Fields in org.klomp.snark declared as I2PSocketManagerModifier and TypeFieldDescriptionprivate I2PSocketManagerI2PSnarkUtil._managerThe shared session.private final I2PSocketManagerTorrentDest._mgrOpens this destination's sockets.Methods in org.klomp.snark that return I2PSocketManagerModifier and TypeMethodDescriptionI2PSnarkUtil.getSocketManager()For FetchAndAdd.I2PSnarkUtil.getSocketManager(byte[] ih) The socket manager for the torrent's destination, or the shared manager when multi-dest is disabled or the torrent has no destination.TorrentDest.getSocketManager()The socket manager of the transient destination this pool's traffic uses.Methods in org.klomp.snark with parameters of type I2PSocketManagerModifier and TypeMethodDescriptionprivate voidIdleChecker.applyTunnels(int inQty, int outQty, int inBackup, int outBackup, I2PSocketManager mgr) Send one reconfiguration to a single session.private I2PSocketI2PSnarkUtil.connect(PeerID peer, I2PSocketManager mgr, Destination myDest) Connect to the given destination via the given socket manager.private FileI2PSnarkUtil.get(String url, boolean rewrite, int retries, I2PSocketManager mgr) Fetch the given URL to a temporary file through the given socket manager.Constructors in org.klomp.snark with parameters of type I2PSocketManagerModifierConstructorDescriptionTorrentDest(I2PAppContext ctx, String key, int poolIndex, int poolNum, I2PSocketManager mgr, I2PServerSocket serverSocket) Assign a torrent to this destination.