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
IOException
public ServerSocket(int port, int backlog) throws IOException
IOException
public ServerSocket(int port) throws IOException
IOException
public int getSoTimeout() throws IOException
IOException
public void setSoTimeout(int timeout) throws SocketException
SocketException
public Socket accept() throws IOException
IOException
public InetAddress getInetAddress()
public int getLocalPort()
public String toString()
Object
public boolean isClosed()
public void close() throws IOException
IOException
public boolean isBound()
protected void finalize() throws Throwable
Object
The 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.