java.net
Class ServerSocket
java.lang.Object
|
+--java.net.ServerSocket
- public synchronized class ServerSocket
- extends Object
ServerSocket
public ServerSocket()
throws IOException
ServerSocket
public ServerSocket(int)
throws IOException
ServerSocket
public ServerSocket(int,
int)
throws IOException
ServerSocket
public ServerSocket(int,
int,
InetAddress)
throws IOException
bind
public void bind(SocketAddress)
throws IOException
IOException
bind
public void bind(SocketAddress,
int)
throws IOException
IOException
getInetAddress
public InetAddress getInetAddress()
getLocalPort
public int getLocalPort()
getLocalSocketAddress
public SocketAddress getLocalSocketAddress()
accept
public Socket accept()
throws IOException
IOException
implAccept
protected final void implAccept(Socket)
throws IOException
IOException
close
public void close()
throws IOException
IOException
getChannel
public java.nio.channels.ServerSocketChannel getChannel()
isBound
public boolean isBound()
isClosed
public boolean isClosed()
setSoTimeout
public void setSoTimeout(int)
throws SocketException
SocketException
getSoTimeout
public int getSoTimeout()
throws IOException
IOException
setReuseAddress
public void setReuseAddress(boolean)
throws SocketException
SocketException
getReuseAddress
public boolean getReuseAddress()
throws SocketException
SocketException
toString
public String toString()
- Description copied from class:
Object
- Returns the empty string. It's here to satisfy javac.
- Overrides:
toString
in class Object
setSocketFactory
public static void setSocketFactory(SocketImplFactory)
throws IOException
IOException
setReceiveBufferSize
public void setReceiveBufferSize(int)
throws SocketException
SocketException
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
SocketException