private class Driver.Acceptor extends java.lang.Object implements Driver.Selectable
| Modifier and Type | Field and Description |
|---|---|
private java.nio.channels.SelectionKey |
key |
private java.nio.channels.ServerSocketChannel |
socket |
| Constructor and Description |
|---|
Acceptor(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
selected() |
private final java.nio.channels.ServerSocketChannel socket
private final java.nio.channels.SelectionKey key
Acceptor(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOExceptionpublic void selected()
throws java.io.IOException
selected in interface Driver.Selectablejava.io.IOException