class LTcpServer : public Server;
class LTcpServer : public Server;
LTcpServer Class
LTcpServer is the base implementation of LWiFiServer and LGPRSServer. You should not use LTcpServer instances directly. Instead, declare instances of LWiFiServer or LGPRSServer and use them to host TCP port through Wi-Fi and GPRS.
LWiFi.begin(); LWiFi.connect("open_network"); LWiFiServer server(80); server.begin(); // start listening on port 80 via Wi-Fi network
LTcpServer.h
|
Method |
Description |
|
Starts listening to a TCP port that accepts client connections. | |
|
Close all Stops listening to a TCP port that accepts client connections. | |
|
Creates a TCP server port on the device that can be connected by remote TCP clients. Call LTcpServer.begin() to start the server port. | |
|
returns the IP address of the server. An IP address is only valid after begin() is called. | |
|
Writes data to all clients connected to this server object. | |
|
Writes data to all clients connected to this server object. |