public class ClientSocket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_HTTP |
static int |
TYPE_HTTPS |
static int |
TYPE_SSL |
static int |
TYPE_TCP |
Constructor and Description |
---|
ClientSocket() |
Modifier and Type | Method and Description |
---|---|
static java.net.Socket |
connect(java.lang.String host,
int port,
int timeout) |
static java.net.Socket |
connect(java.lang.String host,
int port,
int timeout,
int type) |
static java.net.Socket |
connect(java.lang.String host,
int port,
int timeout,
int type,
java.lang.String proxyHost,
int proxyPort) |
public static final int TYPE_TCP
public static final int TYPE_HTTP
public static final int TYPE_HTTPS
public static final int TYPE_SSL
public static java.net.Socket connect(java.lang.String host, int port, int timeout, int type)
public static java.net.Socket connect(java.lang.String host, int port, int timeout)
public static java.net.Socket connect(java.lang.String host, int port, int timeout, int type, java.lang.String proxyHost, int proxyPort)