public class AsyncServerSocket extends Object
| Constructor and Description |
|---|
AsyncServerSocket() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(int port,
BiFunction<SelectionKey,SocketChannel,AsyncSocketConnection> connectionFactory) |
boolean |
isClosed() |
void |
receiveLoop() |
public void connect(int port,
BiFunction<SelectionKey,SocketChannel,AsyncSocketConnection> connectionFactory)
throws IOException
IOExceptionpublic void receiveLoop()
public boolean isClosed()
public void close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.