public abstract class SocketClient
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.InetAddress host) |
void |
connect(java.net.InetAddress host,
int port) |
void |
connect(java.net.InetAddress host,
int port,
java.net.InetAddress localAddr,
int localPort) |
void |
connect(java.net.InetAddress host,
int port,
java.net.Proxy proxy) |
void |
connect(java.net.InetAddress host,
java.net.Proxy proxy) |
void |
connect(java.lang.String hostname) |
void |
connect(java.lang.String hostname,
int port) |
void |
connect(java.lang.String hostname,
int port,
java.net.InetAddress localAddr,
int localPort) |
void |
connect(java.lang.String hostname,
int port,
java.net.Proxy proxy) |
void |
connect(java.lang.String hostname,
java.net.Proxy proxy) |
void |
disconnect() |
int |
getConnectTimeout() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.net.InetAddress |
getRemoteAddress() |
java.lang.String |
getRemoteHostname() |
int |
getRemotePort() |
java.net.Socket |
getSocket() |
javax.net.SocketFactory |
getSocketFactory() |
int |
getTimeout() |
boolean |
isConnected() |
void |
setConnectTimeout(int connectTimeout) |
void |
setSocketFactory(javax.net.SocketFactory factory) |
void |
setTimeout(int timeout) |
public void connect(java.net.InetAddress host,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.net.InetAddress host,
int port,
java.net.Proxy proxy)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.lang.String hostname,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.lang.String hostname,
int port,
java.net.Proxy proxy)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.net.InetAddress host,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.lang.String hostname,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.net.InetAddress host)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.lang.String hostname)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.net.InetAddress host,
java.net.Proxy proxy)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.lang.String hostname,
java.net.Proxy proxy)
throws java.io.IOException
java.io.IOExceptionpublic void disconnect()
throws java.io.IOException
java.io.IOExceptionpublic boolean isConnected()
public int getLocalPort()
public java.net.InetAddress getLocalAddress()
public java.lang.String getRemoteHostname()
public int getRemotePort()
public java.net.InetAddress getRemoteAddress()
public void setSocketFactory(javax.net.SocketFactory factory)
public javax.net.SocketFactory getSocketFactory()
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getTimeout()
public void setTimeout(int timeout)
public java.net.Socket getSocket()