diff --git a/ESP8266Interface.cpp b/ESP8266Interface.cpp index dbde089..d9566bd 100644 --- a/ESP8266Interface.cpp +++ b/ESP8266Interface.cpp @@ -155,7 +155,7 @@ int ESP8266Interface::socket_connect(void *handle, const SocketAddress &addr) return 0; } -int ESP8266Interface::socket_accept(void **handle, void *server) +int ESP8266Interface::socket_accept(void *server, void **socket, SocketAddress *addr) { return NSAPI_ERROR_UNSUPPORTED; } diff --git a/ESP8266Interface.h b/ESP8266Interface.h index b88add7..7627ac0 100644 --- a/ESP8266Interface.h +++ b/ESP8266Interface.h @@ -112,7 +112,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface * @note This call is not-blocking, if this call would block, must * immediately return NSAPI_ERROR_WOULD_WAIT */ - virtual int socket_accept(void **handle, void *server); + virtual int socket_accept(void *handle, void **socket, SocketAddress *address); /** Send data to the remote host * @param handle Socket handle