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 ServerConnectionIOExceptionpublic int getSoTimeout()
throws IOException
getSoTimeout in interface ServerConnectionIOExceptionpublic Connection accept() throws IOException
accept in interface ServerConnectionIOExceptionpublic void close()
throws IOException
close in interface ServerConnectionIOException