public class ServerSocketConnection extends Object implements ServerConnection
Constructor and Description |
---|
ServerSocketConnection(ServerSocket serverSocket) |
Modifier and Type | Method and Description |
---|---|
Connection |
accept() |
void |
close() |
int |
getSoTimeout() |
void |
setSoTimeout(int timeout) |
public ServerSocketConnection(ServerSocket serverSocket)
public void setSoTimeout(int timeout) throws IOException
setSoTimeout
in interface ServerConnection
IOException
public int getSoTimeout() throws IOException
getSoTimeout
in interface ServerConnection
IOException
public Connection accept() throws IOException
accept
in interface ServerConnection
IOException
public void close() throws IOException
close
in interface ServerConnection
IOException