Skip to content

Commit

Permalink
Merge pull request #1 from geky/socket-accept-address
Browse files Browse the repository at this point in the history
network-socket: Peer address update for Nanostack
  • Loading branch information
The Infinnovation team authored Aug 12, 2016
2 parents 4f731e6 + 1929c5b commit 9180796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ int NanostackInterface::socket_connect(void *handle, const SocketAddress &addr)
return ret;
}

int NanostackInterface::socket_accept(void **handle, void *server)
int NanostackInterface::socket_accept(void *server, void **handle, SocketAddress *address)
{
return NSAPI_ERROR_UNSUPPORTED;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ class NanostackInterface : public NetworkStack {
* This call is non-blocking. If accept would block,
* NSAPI_ERROR_WOULD_BLOCK is returned immediately.
*
* @param handle Destination for a handle to the newly created sockey
* @param server Socket handle to server to accept from
* @param handle Destination for a handle to the newly created socket
* @param address Destination for the remote address or NULL
* @return 0 on success, negative error code on failure
*/
virtual int socket_accept(void **handle, void *server);
virtual int socket_accept(void *handle, void **server, SocketAddress *address);

/** Send data over a TCP socket
*
Expand Down

0 comments on commit 9180796

Please sign in to comment.