Skip to content

Commit 9180796

Browse files
author
The Infinnovation team
authored
Merge pull request #1 from geky/socket-accept-address
network-socket: Peer address update for Nanostack
2 parents 4f731e6 + 1929c5b commit 9180796

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ int NanostackInterface::socket_connect(void *handle, const SocketAddress &addr)
846846
return ret;
847847
}
848848

849-
int NanostackInterface::socket_accept(void **handle, void *server)
849+
int NanostackInterface::socket_accept(void *server, void **handle, SocketAddress *address)
850850
{
851851
return NSAPI_ERROR_UNSUPPORTED;
852852
}

features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ class NanostackInterface : public NetworkStack {
9595
* This call is non-blocking. If accept would block,
9696
* NSAPI_ERROR_WOULD_BLOCK is returned immediately.
9797
*
98-
* @param handle Destination for a handle to the newly created sockey
9998
* @param server Socket handle to server to accept from
99+
* @param handle Destination for a handle to the newly created socket
100+
* @param address Destination for the remote address or NULL
100101
* @return 0 on success, negative error code on failure
101102
*/
102-
virtual int socket_accept(void **handle, void *server);
103+
virtual int socket_accept(void *handle, void **server, SocketAddress *address);
103104

104105
/** Send data over a TCP socket
105106
*

0 commit comments

Comments
 (0)