@@ -36,7 +36,7 @@ class InternetDatagramSocket : public InternetSocket {
36
36
* nonblocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
37
37
* immediately.
38
38
*
39
- * It uses sendmsg with zero ancillary data
39
+ * It uses sendto_control with zero ancillary data
40
40
* @param address The SocketAddress of the remote host.
41
41
* @param data Buffer of data to send to the host.
42
42
* @param size Size of the buffer in bytes.
@@ -61,7 +61,7 @@ class InternetDatagramSocket : public InternetSocket {
61
61
* are accepted.
62
62
*
63
63
* @note recvfrom() is allowed write to address and data buffers even if error occurs.
64
- * It uses recvmsg with zero ancillary data
64
+ * It uses recvfrom_control with zero ancillary data
65
65
* @param address Destination for the source address or NULL.
66
66
* @param data Destination buffer for RAW data to be received from the host.
67
67
* @param size Size of the buffer in bytes.
@@ -81,7 +81,7 @@ class InternetDatagramSocket : public InternetSocket {
81
81
* nonblocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
82
82
* immediately.
83
83
*
84
- * It uses sendmsg with zero ancillary data
84
+ * It uses sendto_control with zero ancillary data
85
85
* @param address The SocketAddress of the remote host.
86
86
* @param data Buffer of data to send to the host.
87
87
* @param size Size of the buffer in bytes.
@@ -93,9 +93,9 @@ class InternetDatagramSocket : public InternetSocket {
93
93
* @retval int Other negative error codes for stack-related failures.
94
94
* See \ref NetworkStack::socket_send.
95
95
*/
96
- nsapi_size_or_error_t sendmsg (const SocketAddress &address,
97
- const void *data, nsapi_size_t size,
98
- nsapi_msghdr_t *control, nsapi_size_t control_size) override ;
96
+ nsapi_size_or_error_t sendto_control (const SocketAddress &address,
97
+ const void *data, nsapi_size_t size,
98
+ nsapi_msghdr_t *control, nsapi_size_t control_size) override ;
99
99
100
100
101
101
/* * Receive a datagram with ancillary data and store the source address in address if it's not NULL.
@@ -109,7 +109,7 @@ class InternetDatagramSocket : public InternetSocket {
109
109
* @note If socket is connected, only packets coming from connected peer address
110
110
* are accepted.
111
111
*
112
- * @note recvmsg () is allowed write to address and data buffers even if error occurs.
112
+ * @note recvfrom_control () is allowed write to address and data buffers even if error occurs.
113
113
*
114
114
* @param address Destination for the source address or NULL.
115
115
* @param data Destination buffer for RAW data to be received from the host.
@@ -123,9 +123,9 @@ class InternetDatagramSocket : public InternetSocket {
123
123
* @retval int Other negative error codes for stack-related failures.
124
124
* See \ref NetworkStack::socket_recv.
125
125
*/
126
- nsapi_size_or_error_t recvmsg (SocketAddress *address,
127
- void *data, nsapi_size_t size,
128
- nsapi_msghdr_t *control, nsapi_size_t control_size) override ;
126
+ nsapi_size_or_error_t recvfrom_control (SocketAddress *address,
127
+ void *data, nsapi_size_t size,
128
+ nsapi_msghdr_t *control, nsapi_size_t control_size) override ;
129
129
130
130
/* * Set the remote address for next send() call and filtering
131
131
* of incoming packets. To reset the address, zero initialized
0 commit comments