Skip to content

Add support for returning peer address from socket_accept #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ESP8266Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion ESP8266Interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down