Closeable, AutoCloseable, Runnablepublic class ServerNode extends ServerSocket implements Runnable
| Constructor | Description |
|---|---|
ServerNode(int Port,
long ConnectedClientsSleepTime) |
|
ServerNode(int Port,
long ConnectedClientsSleepTime,
long ServerSleepTime) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addNewClientListener(NewClientNodeListener clientListener) |
|
void |
close() |
|
void |
newClientNodeFound(ClientNode newClientNode) |
|
void |
run() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, bind, bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, 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 AutoCloseableclose in interface Closeableclose in class ServerSocketIOExceptionpublic void newClientNodeFound(ClientNode newClientNode)
Copyright © 2019 SMYLD. All rights reserved.