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
IOException
public ServerSocket(int var0) throws IOException
IOException
public ServerSocket(int var0, int var1) throws IOException
IOException
public ServerSocket(int var0, int var1, InetAddress var2) throws IOException
IOException
public Socket accept() throws IOException
IOException
public void bind(SocketAddress var0) throws IOException
IOException
public void bind(SocketAddress var0, int var1) throws IOException
IOException
public void close() throws IOException
IOException
public InetAddress getInetAddress()
public int getLocalPort()
public SocketAddress getLocalSocketAddress()
public int getReceiveBufferSize() throws SocketException
SocketException
public boolean getReuseAddress() throws SocketException
SocketException
public int getSoTimeout() throws IOException
IOException
protected final void implAccept(Socket var0) throws IOException
IOException
public boolean isBound()
public boolean isClosed()
public void setReceiveBufferSize(int var0) throws SocketException
SocketException
public void setReuseAddress(boolean var0) throws SocketException
SocketException
public void setSoTimeout(int var0) throws SocketException
SocketException
public static void setSocketFactory(SocketImplFactory var0) throws IOException
IOException