Modifier and Type | Method and Description |
---|---|
void |
connect(InetAddress host) |
void |
connect(InetAddress host,
int port) |
void |
connect(InetAddress host,
int port,
InetAddress localAddr,
int localPort) |
void |
connect(String hostname) |
void |
connect(String hostname,
int port) |
void |
connect(String hostname,
int port,
InetAddress localAddr,
int localPort) |
void |
disconnect() |
int |
getConnectTimeout() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
InetAddress |
getRemoteAddress() |
String |
getRemoteHostname() |
int |
getRemotePort() |
Socket |
getSocket() |
SocketFactory |
getSocketFactory() |
int |
getTimeout() |
boolean |
isConnected() |
void |
setConnectTimeout(int connectTimeout) |
void |
setSocketFactory(SocketFactory factory) |
void |
setTimeout(int timeout) |
public void connect(InetAddress host, int port) throws IOException
IOException
public void connect(String hostname, int port) throws IOException
IOException
public void connect(InetAddress host, int port, InetAddress localAddr, int localPort) throws IOException
IOException
public void connect(String hostname, int port, InetAddress localAddr, int localPort) throws IOException
IOException
public void connect(InetAddress host) throws IOException
IOException
public void connect(String hostname) throws IOException
IOException
public void disconnect() throws IOException
IOException
public boolean isConnected()
public int getLocalPort()
public InetAddress getLocalAddress()
public String getRemoteHostname()
public int getRemotePort()
public InetAddress getRemoteAddress()
public void setSocketFactory(SocketFactory factory)
public SocketFactory getSocketFactory()
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getTimeout()
public void setTimeout(int timeout)
public Socket getSocket()
Copyright © 2009–2013. All rights reserved.