public class ServerNode extends ServerSocket implements Runnable
| Constructor and Description |
|---|
ServerNode(int Port,
long ConnectedClientsSleepTime) |
ServerNode(int Port,
long ConnectedClientsSleepTime,
long ServerSleepTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewClientListener(NewClientNodeListener clientListener) |
void |
close() |
void |
newClientNodeFound(ClientNode newClientNode) |
void |
run() |
accept, bind, bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic ServerNode(int Port,
long ConnectedClientsSleepTime,
long ServerSleepTime)
throws IOException
IOExceptionpublic ServerNode(int Port,
long ConnectedClientsSleepTime)
throws IOException
IOExceptionpublic void addNewClientListener(NewClientNodeListener clientListener)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ServerSocketIOExceptionpublic void newClientNodeFound(ClientNode newClientNode)
Copyright © 2019 com.github.mfjamil. All rights reserved.