net.i2p.client.streaming
public class I2PSocketManagerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MANAGER |
static String |
PROP_MANAGER |
Constructor and Description |
---|
I2PSocketManagerFactory() |
Modifier and Type | Method and Description |
---|---|
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(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,
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,
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(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(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 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.
|
public static final String PROP_MANAGER
public static final String DEFAULT_MANAGER
public static I2PSocketManager createManager()
public static I2PSocketManager createManager(Properties opts)
opts
- I2CP optionspublic static I2PSocketManager createManager(String host, int port)
host
- I2CP hostport
- I2CP portpublic static I2PSocketManager createManager(String i2cpHost, int i2cpPort, Properties opts)
i2cpHost
- I2CP hosti2cpPort
- I2CP portopts
- I2CP optionspublic static I2PSocketManager createManager(InputStream myPrivateKeyStream)
myPrivateKeyStream
- private key streampublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, Properties opts)
myPrivateKeyStream
- private key streamopts
- I2CP optionspublic static I2PSocketManager createManager(InputStream myPrivateKeyStream, String i2cpHost, int i2cpPort, Properties opts)
myPrivateKeyStream
- private key streami2cpHost
- I2CP hosti2cpPort
- I2CP portopts
- I2CP options