public class SocketFactory extends Object
| Constructor and Description |
|---|
SocketFactory(int timeout,
Proxy proxy,
IRCSSLSupport sslSupport) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String host,
int port)
Creates a new
Socket base on the the specification passed in
through the constructor. |
public SocketFactory(int timeout,
Proxy proxy,
IRCSSLSupport sslSupport)
throws KeyManagementException,
NoSuchAlgorithmException
timeout - im millisecondsproxy - the proxy or null if no proxy is to be usedsslSupport - the SSL support or null if SSL should not be usedKeyManagementException - rethrown from
SSLContext.init(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[],
java.security.SecureRandom)NoSuchAlgorithmException - rethrown from SSLContext.getInstance(String)public Socket createSocket(String host, int port) throws IOException
Socket base on the the specification passed in
through the constructor.host - the hostname or IP address to connect toport - the port number on the destination hostSocketIOException - rethrown from several Socket methodsCopyright © 2006–2015. All rights reserved.