Syntax
class LTcpServer : public Server;
ContentsIndex
PreviousUpNext
LTcpServer Class
Members | Example
Syntax
class LTcpServer : public Server;
Description

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.

Example
    LWiFi.begin();
    LWiFi.connect("open_network");
    LWiFiServer server(80);
    server.begin();  // start listening on port 80 via Wi-Fi network
Class Hierarchy
File

LTcpServer.h

Group
Methods
Method 
Description 
Starts listening to a TCP port that accepts client connections. 
end 
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.