T - the type of data transferredpublic interface SimulationServerSocket<T> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
SimulationSocket<T> |
accept()
Accepts a socket from the waiting queue.
|
int |
available()
Returns the number of waiting sockets ready to be accepted (see
accept()). |
void |
close()
Closes the server socket and frees up resources.
|
int available()
accept()). This number is zero if there are no listening sockets
and at most the number of sockets which can be accepted without blocking
(but at least one).SimulationSocket<T> accept() throws IOException
IOException - if an I/O exception occursvoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2015. All rights reserved.