Skip to content

Commit c02f216

Browse files
author
Amanda Butler
authored
Edit UDPSocket.h
Edit file, mostly for minor spelling to existing text.
1 parent 8a7d96c commit c02f216

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

features/netsocket/UDPSocket.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class UDPSocket : public InternetSocket {
5757
/** Send data to the specified host and port.
5858
*
5959
* 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
6161
* immediately.
6262
*
6363
* @param host Domain name of the remote host or a dotted notation IP address.
@@ -73,7 +73,7 @@ class UDPSocket : public InternetSocket {
7373
/** Send data to the specified address.
7474
*
7575
* 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
7777
* immediately.
7878
*
7979
* @param address The SocketAddress of the remote host.
@@ -88,7 +88,7 @@ class UDPSocket : public InternetSocket {
8888
/** Receive a datagram and store the source address in address if it's not NULL.
8989
*
9090
* 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
9292
* is returned.
9393
*
9494
* @note If the datagram is larger than the buffer, the excess data is silently discarded.
@@ -108,7 +108,7 @@ class UDPSocket : public InternetSocket {
108108
void *data, nsapi_size_t size);
109109

110110
/** 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
112112
* SocketAddress must be in the address parameter.
113113
*
114114
* @param address The SocketAddress of the remote host.
@@ -119,7 +119,7 @@ class UDPSocket : public InternetSocket {
119119
/** Send a datagram to connected remote address.
120120
*
121121
* 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.
123123
* NSAPI_ERROR_WOULD_BLOCK is returned if no data was written.
124124
*
125125
* @note The socket must be connected to a remote host before send() call.
@@ -133,13 +133,13 @@ class UDPSocket : public InternetSocket {
133133

134134
/** Receive data from a socket.
135135
*
136-
* This is equivalent of calling recvfrom(NULL, data, size).
136+
* This is equivalent to calling recvfrom(NULL, data, size).
137137
*
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
139139
* are accepted.
140140
*
141141
* 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
143143
* indicate no data.
144144
*
145145
* @note recv() is allowed write to data buffer even if error occurs.

0 commit comments

Comments
 (0)