public class I2PSocketManagerFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String | DEFAULT_MANAGERThe one and only manager. |
| Constructor and Description |
|---|
I2PSocketManagerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static I2PSocketManager | 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 I2PSocketManager | 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 I2PSocketManager | 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 I2PSocketManager | 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. |
static I2PSocketManager | 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 I2PSocketManager | 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
Blocks for a long time while the router builds tunnels. |
static I2PSocketManager | 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 I2PSocketManager | 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 I2PSocketManager | 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. |
static I2PSocketManager | 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 I2PSocketManager | 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 I2PSocketManager | 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). |
static I2PSocketManager | 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 I2PSocketManager | 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
Blocks for a long time while the router builds tunnels. |
static I2PSocketManager | 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 I2PSocketManager | 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
Blocks for a long time while the router builds tunnels. |
public static final String DEFAULT_MANAGER
public static I2PSocketManager createDisconnectedManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts) throws I2PSessionException
myPrivateKeyStream - private key stream or null for transient destinationi2cpHost - I2CP host null to use defaulti2cpPort - I2CP port <= 0 to use defaultopts - Streaming and I2CP options, may be nullI2PSessionException - on session creation errorpublic static I2PSocketManager createDisconnectedManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter) throws I2PSessionException
myPrivateKeyStream - private key stream or null for transient destinationi2cpHost - I2CP host null to use defaulti2cpPort - I2CP port <= 0 to use defaultopts - Streaming and I2CP options, may be nullfilter - the incoming connection filterI2PSessionException - on session creation errorpublic static I2PSocketManager createManager()
public static I2PSocketManager createManager(IncomingConnectionFilter filter)
filter - The filter for incoming connectionspublic static I2PSocketManager createManager(InputStream myPrivateKeyStream)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.public static I2PSocketManager createManager(InputStream myPrivateKeyStream, IncomingConnectionFilter filter)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.filter - The filter to use for incoming connectionspublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, Properties opts)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.opts - Streaming and I2CP options, may be nullpublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, Properties opts, IncomingConnectionFilter filter)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.opts - Streaming and I2CP options, may be nullfilter - The filter to use for incoming connectionspublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.i2cpHost - I2CP host null to use default, ignored if in router contexti2cpPort - I2CP port <= 0 to use default, ignored if in router contextopts - Streaming and I2CP options, may be nullpublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter)
myPrivateKeyStream - private key stream, format is specified in PrivateKeyFile
or null for a transient destination. Caller must close.i2cpHost - I2CP host null to use default, ignored if in router contexti2cpPort - I2CP port <= 0 to use default, ignored if in router contextopts - Streaming and I2CP options, may be nullfilter - The filter to use for incoming connectionspublic static I2PSocketManager createManager(Properties opts)
opts - Streaming and I2CP options, may be nullpublic static I2PSocketManager createManager(Properties opts, IncomingConnectionFilter filter)
opts - Streaming and I2CP options, may be nullfilter - The filter to use for incoming connectionspublic static I2PSocketManager createManager(String host, int port)
host - I2CP host null to use default, ignored if in router contextport - I2CP port <= 0 to use default, ignored if in router contextpublic static I2PSocketManager createManager(String host, int port, IncomingConnectionFilter filter)
host - I2CP host null to use default, ignored if in router contextport - I2CP port <= 0 to use default, ignored if in router contextfilter - The filter to use for incoming connectionspublic static I2PSocketManager createManager(String i2cpHost, int i2cpPort, Properties opts)
i2cpHost - I2CP host null to use default, ignored if in router contexti2cpPort - I2CP port <= 0 to use default, ignored if in router contextopts - Streaming and I2CP options, may be nullpublic static I2PSocketManager createManager(String i2cpHost, int i2cpPort, Properties opts, IncomingConnectionFilter filter)
i2cpHost - I2CP host null to use default, ignored if in router contexti2cpPort - I2CP port <= 0 to use default, ignored if in router contextopts - Streaming and I2CP options, may be nullfilter - The filter to use for incoming connections