public class SocketConnector extends Object
| Constructor and Description |
|---|
SocketConnector()
Creates a new instance that creates a plain socket by default.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String destination,
int port)
Create a new client Socket to the given destination and port.
|
void |
setSSLType(String type)
Set the type of SSL connection to use.
|
public SocketConnector()
public void setSSLType(String type)
type - The SSL connection typepublic Socket createSocket(String destination, int port)
destination - destination hostport - a port to connect toCopyright © 2018. All rights reserved.