@@ -57,7 +57,7 @@ class UDPSocket : public InternetSocket {
57
57
/* * Send data to the specified host and port.
58
58
*
59
59
* By default, sendto blocks until data is sent. If socket is set to
60
- * non-blocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
60
+ * nonblocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
61
61
* immediately.
62
62
*
63
63
* @param host Domain name of the remote host or a dotted notation IP address.
@@ -73,7 +73,7 @@ class UDPSocket : public InternetSocket {
73
73
/* * Send data to the specified address.
74
74
*
75
75
* By default, sendto blocks until data is sent. If socket is set to
76
- * non-blocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
76
+ * nonblocking or times out, NSAPI_ERROR_WOULD_BLOCK is returned
77
77
* immediately.
78
78
*
79
79
* @param address The SocketAddress of the remote host.
@@ -88,7 +88,7 @@ class UDPSocket : public InternetSocket {
88
88
/* * Receive a datagram and store the source address in address if it's not NULL.
89
89
*
90
90
* By default, recvfrom blocks until a datagram is received. If socket is set to
91
- * non-blocking or times out with no datagram, NSAPI_ERROR_WOULD_BLOCK
91
+ * nonblocking or times out with no datagram, NSAPI_ERROR_WOULD_BLOCK
92
92
* is returned.
93
93
*
94
94
* @note If the datagram is larger than the buffer, the excess data is silently discarded.
@@ -108,7 +108,7 @@ class UDPSocket : public InternetSocket {
108
108
void *data, nsapi_size_t size);
109
109
110
110
/* * Set the remote address for next send() call and filtering
111
- * of incoming packets. To reset the address, zero initialised
111
+ * of incoming packets. To reset the address, zero initialized
112
112
* SocketAddress must be in the address parameter.
113
113
*
114
114
* @param address The SocketAddress of the remote host.
@@ -119,7 +119,7 @@ class UDPSocket : public InternetSocket {
119
119
/* * Send a datagram to connected remote address.
120
120
*
121
121
* By default, send blocks until all data is sent. If socket is set to
122
- * non-blocking or times out, a partial amount can be written.
122
+ * nonblocking or times out, a partial amount can be written.
123
123
* NSAPI_ERROR_WOULD_BLOCK is returned if no data was written.
124
124
*
125
125
* @note The socket must be connected to a remote host before send() call.
@@ -133,13 +133,13 @@ class UDPSocket : public InternetSocket {
133
133
134
134
/* * Receive data from a socket.
135
135
*
136
- * This is equivalent of calling recvfrom(NULL, data, size).
136
+ * This is equivalent to calling recvfrom(NULL, data, size).
137
137
*
138
- * If socket is connected, only packets coming from connected peer address
138
+ * If the socket is connected, only packets coming from a connected peer address
139
139
* are accepted.
140
140
*
141
141
* By default, recv blocks until some data is received. If socket is set to
142
- * non-blocking or times out, NSAPI_ERROR_WOULD_BLOCK can be returned to
142
+ * nonblocking or times out, NSAPI_ERROR_WOULD_BLOCK can be returned to
143
143
* indicate no data.
144
144
*
145
145
* @note recv() is allowed write to data buffer even if error occurs.
0 commit comments