Skip to content

Commit 63da515

Browse files
committed
Added support for returning peer address from socket_accept
1 parent 450cc12 commit 63da515

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ESP8266Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int ESP8266Interface::socket_connect(void *handle, const SocketAddress &addr)
155155
return 0;
156156
}
157157

158-
int ESP8266Interface::socket_accept(void **handle, void *server)
158+
int ESP8266Interface::socket_accept(void *server, void **socket, SocketAddress *addr)
159159
{
160160
return NSAPI_ERROR_UNSUPPORTED;
161161
}

ESP8266Interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ESP8266Interface : public NetworkStack, public WiFiInterface
112112
* @note This call is not-blocking, if this call would block, must
113113
* immediately return NSAPI_ERROR_WOULD_WAIT
114114
*/
115-
virtual int socket_accept(void **handle, void *server);
115+
virtual int socket_accept(void *handle, void **socket, SocketAddress *address);
116116

117117
/** Send data to the remote host
118118
* @param handle Socket handle

0 commit comments

Comments
 (0)