public class Server
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
Server(java.lang.String peerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPort() |
ServerConnection |
waitForIncoming(java.time.Duration timeout) |
public int getPort()
public ServerConnection waitForIncoming(java.time.Duration timeout)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException