public class Socket extends Object
Modifier | Constructor | Description |
---|---|---|
|
Socket() |
|
|
Socket(String var0,
int var1) |
|
|
Socket(String var0,
int var1,
InetAddress var2,
int var3) |
|
|
Socket(InetAddress var0,
int var1) |
|
|
Socket(InetAddress var0,
int var1,
InetAddress var2,
int var3) |
|
protected |
Socket(SocketImpl var0) |
public Socket()
public Socket(String var0, int var1) throws IOException
IOException
public Socket(String var0, int var1, InetAddress var2, int var3) throws IOException
IOException
public Socket(InetAddress var0, int var1) throws IOException
IOException
public Socket(InetAddress var0, int var1, InetAddress var2, int var3) throws IOException
IOException
protected Socket(SocketImpl var0) throws SocketException
SocketException
public void bind(SocketAddress var0) throws IOException
IOException
public void close() throws IOException
IOException
public void connect(SocketAddress var0) throws IOException
IOException
public void connect(SocketAddress var0, int var1) throws IOException
IOException
public InetAddress getInetAddress()
public InputStream getInputStream() throws IOException
IOException
public boolean getKeepAlive() throws SocketException
SocketException
public InetAddress getLocalAddress()
public int getLocalPort()
public SocketAddress getLocalSocketAddress()
public boolean getOOBInline() throws SocketException
SocketException
public OutputStream getOutputStream() throws IOException
IOException
public int getPort()
public int getReceiveBufferSize() throws SocketException
SocketException
public SocketAddress getRemoteSocketAddress()
public boolean getReuseAddress() throws SocketException
SocketException
public int getSendBufferSize() throws SocketException
SocketException
public int getSoLinger() throws SocketException
SocketException
public int getSoTimeout() throws SocketException
SocketException
public boolean getTcpNoDelay() throws SocketException
SocketException
public int getTrafficClass() throws SocketException
SocketException
public boolean isBound()
public boolean isClosed()
public boolean isConnected()
public boolean isInputShutdown()
public boolean isOutputShutdown()
public void sendUrgentData(int var0) throws IOException
IOException
public void setKeepAlive(boolean var0) throws SocketException
SocketException
public void setOOBInline(boolean var0) throws SocketException
SocketException
public void setReceiveBufferSize(int var0) throws SocketException
SocketException
public void setReuseAddress(boolean var0) throws SocketException
SocketException
public void setSendBufferSize(int var0) throws SocketException
SocketException
public void setSoLinger(boolean var0, int var1) throws SocketException
SocketException
public void setSoTimeout(int var0) throws SocketException
SocketException
public static void setSocketImplFactory(SocketImplFactory var0) throws IOException
IOException
public void setTcpNoDelay(boolean var0) throws SocketException
SocketException
public void setTrafficClass(int var0) throws SocketException
SocketException
public void shutdownInput() throws IOException
IOException
public void shutdownOutput() throws IOException
IOException