-
Notifications
You must be signed in to change notification settings - Fork 7
Listen
Warren Gay edited this page Nov 17, 2015
·
1 revision
bool ESP8266::listen(int port,accept_t accp_cb)
This method causes a server port to be created at the indicated port. The accp_cb callback is called, whenever a connection is attempted by a remote client.
void ESP8266::accept(int socket,recv_func_t recv_cb)
Call this method to accept a connect request, when the listen's accp_cb callback has been invoked.
bool ESP8266::unlisten()
Call this method when you want to terminate the server.