public class TCPClient extends TCPCommunicator implements Runnable
| Constructor and Description |
|---|
TCPClient(int portNo)
Connect to server on local host
|
TCPClient(String hostName,
int portNo)
Connect to given server
|
| Modifier and Type | Method and Description |
|---|---|
void |
makeNonBlocking()
Make socket non blocking
|
void |
run()
Server main loop (for non-blocking communication)
|
addCommunicationSocket, addTCPMessageListener, close, getSelector, readMessage, readStringMessage, removeTCPMessageListener, sendMessage, sendMessage, sendMessage, toStringpublic TCPClient(int portNo)
public TCPClient(String hostName, int portNo)
Copyright © 2021. All rights reserved.