net.i2p.client
class I2CPSSLSocketFactory extends Object
Constructor and Description |
---|
I2CPSSLSocketFactory() |
Modifier and Type | Method and Description |
---|---|
static Socket |
createSocket(I2PAppContext ctx,
String host,
int port)
Initializes the static SSL Context if required, then returns a socket
to the host.
|
public static Socket createSocket(I2PAppContext ctx, String host, int port) throws IOException
ctx
- just for loggingIOException
- on init error or usual socket errors