public class ServerSocket extends Object
| Constructor and Description |
|---|
ServerSocket(int port) |
ServerSocket(int port,
int backlog) |
ServerSocket(int port,
int backlog,
InetAddress bindAddress) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
accept() |
void |
close() |
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be
garbage collected.
|
InetAddress |
getInetAddress() |
int |
getLocalPort() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
void |
setSoTimeout(int timeout) |
String |
toString()
Return a String representation of this object.
|
public ServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
IOExceptionpublic ServerSocket(int port,
int backlog)
throws IOException
IOExceptionpublic ServerSocket(int port)
throws IOException
IOExceptionpublic int getSoTimeout()
throws IOException
IOExceptionpublic void setSoTimeout(int timeout)
throws SocketException
SocketExceptionpublic Socket accept() throws IOException
IOExceptionpublic InetAddress getInetAddress()
public int getLocalPort()
public String toString()
Objectpublic boolean isClosed()
public void close()
throws IOException
IOExceptionpublic boolean isBound()
protected void finalize()
throws Throwable
ObjectThe finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Eve VM.