Skip to content
Warren Gay edited this page Nov 17, 2015 · 1 revision

listen

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.

accept

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.

unlisten

bool ESP8266::unlisten()

Call this method when you want to terminate the server.

Clone this wiki locally