Serializable, ClientNodeTextListener, NewClientNodeListenerpublic class ServerImpl extends SMYLDObject implements NewClientNodeListener, ClientNodeTextListener
| Modifier and Type | Field | Description |
|---|---|---|
protected NetProtocol |
serverNetProtocol |
NEW_LINE, OS_NEW_LINE| Constructor | Description |
|---|---|
ServerImpl(int port,
long textListeningSleepTime,
int MaximumConnectingClient,
NetProtocol ServerNetProtocol) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
incomingText(ClientNode sourceNode,
String newText) |
|
void |
newClientNodeFound(ClientNode newClientNode) |
|
void |
sendText(String clientIPAddress,
String sentText) |
|
void |
sendTextLineToALL(String sentText) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, getLenName, insertInstanceValue, printInstanceValues, toStringprotected NetProtocol serverNetProtocol
public ServerImpl(int port,
long textListeningSleepTime,
int MaximumConnectingClient,
NetProtocol ServerNetProtocol)
throws IOException
IOExceptionpublic void newClientNodeFound(ClientNode newClientNode)
newClientNodeFound in interface NewClientNodeListenerpublic void incomingText(ClientNode sourceNode, String newText)
incomingText in interface ClientNodeTextListenerpublic void sendTextLineToALL(String sentText)
public void close()
throws IOException
IOExceptionCopyright © 2019 SMYLD. All rights reserved.