public class ServerSocket extends Object
| Constructor and Description |
|---|
ServerSocket() |
ServerSocket(int var0) |
ServerSocket(int var0,
int var1) |
ServerSocket(int var0,
int var1,
InetAddress var2) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
accept() |
void |
bind(SocketAddress var0) |
void |
bind(SocketAddress var0,
int var1) |
void |
close() |
InetAddress |
getInetAddress() |
int |
getLocalPort() |
SocketAddress |
getLocalSocketAddress() |
int |
getReceiveBufferSize() |
boolean |
getReuseAddress() |
int |
getSoTimeout() |
protected void |
implAccept(Socket var0) |
boolean |
isBound() |
boolean |
isClosed() |
void |
setReceiveBufferSize(int var0) |
void |
setReuseAddress(boolean var0) |
static void |
setSocketFactory(SocketImplFactory var0) |
void |
setSoTimeout(int var0) |
public ServerSocket()
throws IOException
IOExceptionpublic ServerSocket(int var0)
throws IOException
IOExceptionpublic ServerSocket(int var0,
int var1)
throws IOException
IOExceptionpublic ServerSocket(int var0,
int var1,
InetAddress var2)
throws IOException
IOExceptionpublic Socket accept() throws IOException
IOExceptionpublic void bind(SocketAddress var0) throws IOException
IOExceptionpublic void bind(SocketAddress var0, int var1) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic InetAddress getInetAddress()
public int getLocalPort()
public SocketAddress getLocalSocketAddress()
public int getReceiveBufferSize()
throws SocketException
SocketExceptionpublic boolean getReuseAddress()
throws SocketException
SocketExceptionpublic int getSoTimeout()
throws IOException
IOExceptionprotected final void implAccept(Socket var0) throws IOException
IOExceptionpublic boolean isBound()
public boolean isClosed()
public void setReceiveBufferSize(int var0)
throws SocketException
SocketExceptionpublic void setReuseAddress(boolean var0)
throws SocketException
SocketExceptionpublic void setSoTimeout(int var0)
throws SocketException
SocketExceptionpublic static void setSocketFactory(SocketImplFactory var0) throws IOException
IOException