public class ServerImpl extends SMYLDObject implements NewClientNodeListener, ClientNodeTextListener
| Modifier and Type | Field and Description |
|---|---|
protected NetProtocol |
serverNetProtocol |
NEW_LINE, OS_NEW_LINE| Constructor and Description |
|---|
ServerImpl(int port,
long textListeningSleepTime,
int MaximumConnectingClient,
NetProtocol ServerNetProtocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
incomingText(ClientNode sourceNode,
String newText) |
void |
newClientNodeFound(ClientNode newClientNode) |
void |
sendText(String clientIPAddress,
String sentText) |
void |
sendTextLineToALL(String sentText) |
debug, 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 com.github.mfjamil. All rights reserved.