mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1 from geky/socket-accept-address
network-socket: Peer address update for Nanostackpull/2434/head
commit
9180796684
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -95,11 +95,12 @@ protected:
|
|||
* 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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue