Skip to content

Commit 6db0f67

Browse files
author
Amanda Butler
authored
Edit InternetSocket.h
Edit file, mostly for branding, commas and U.S. spelling.
1 parent fd0612b commit 6db0f67

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

features/netsocket/InternetSocket.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class InternetSocket : public Socket {
5656
}
5757
#endif //!defined(DOXYGEN_ONLY)
5858

59-
/** Close any open connection and deallocate any memory associated
59+
/** Close any open connection, and deallocate any memory associated
6060
* with the socket. Called from destructor if socket is not closed.
6161
*
6262
* @return 0 on success, negative error code on failure (@see nsapi_types.h).
@@ -85,7 +85,7 @@ class InternetSocket : public Socket {
8585
nsapi_error_t bind(uint16_t port);
8686

8787
/** Bind the socket to a specific address and port on which to receive
88-
* data. If the IP address is zeroed only the port is bound.
88+
* data. If the IP address is zeroed, only the port is bound.
8989
*
9090
* @param address Null-terminated local address to bind.
9191
* @param port Local port to bind.
@@ -96,21 +96,21 @@ class InternetSocket : public Socket {
9696
/** Bind the socket to a specific address and port on which to receive
9797
* data. If the IP address is zeroed, only the port is bound.
9898
*
99-
* @param address Local SocketAddress to bind which includes the address and port.
99+
* @param address Local SocketAddress to bind, which includes the address and port.
100100
* @return 0 on success, negative error code on failure (@see nsapi_types.h).
101101
*/
102102
virtual nsapi_error_t bind(const SocketAddress &address);
103103

104-
/** Set blocking or non-blocking mode of the socket.
104+
/** Set blocking or nonblocking mode of the socket.
105105
*
106-
* Initially all sockets are in blocking mode. In non-blocking mode
107-
* blocking operations such as send/recv/accept return
108-
* NSAPI_ERROR_WOULD_BLOCK if they can not continue.
106+
* Initially all sockets are in blocking mode. In nonblocking mode,
107+
* blocking operations, such as send/recv/accept, return
108+
* NSAPI_ERROR_WOULD_BLOCK if they cannot continue.
109109
*
110110
* @note set_blocking(false) is equivalent to set_timeout(-1) and
111111
* set_blocking(true) is equivalent to set_timeout(0).
112112
*
113-
* @param blocking Use true for blocking mode, false for non-blocking mode.
113+
* @param blocking Use true for blocking mode, false for nonblocking mode.
114114
*/
115115
virtual void set_blocking(bool blocking);
116116

@@ -131,7 +131,7 @@ class InternetSocket : public Socket {
131131
/** Pass stack-specific options to the underlying stack using stack-specific
132132
* level and option names, or request generic options using levels from nsapi_socket_level_t.
133133
*
134-
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned
134+
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned,
135135
* and the socket is unmodified.
136136
*
137137
* @param level Stack-specific protocol level or nsapi_socket_level_t.
@@ -146,7 +146,7 @@ class InternetSocket : public Socket {
146146
* stack-specific level and option names, or request generic options
147147
* using levels from nsapi_socket_level_t.
148148
*
149-
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned
149+
* For unsupported options, NSAPI_ERROR_UNSUPPORTED is returned,
150150
* and the socket is unmodified.
151151
*
152152
* @param level Stack-specific protocol level or nsapi_socket_level_t.
@@ -159,12 +159,12 @@ class InternetSocket : public Socket {
159159

160160
/** Register a callback on state change of the socket.
161161
*
162-
* The specified callback will be called on state changes such as when
162+
* The specified callback is called on state changes, such as when
163163
* the socket can recv/send/accept successfully and when an error
164164
* occurs. The callback may also be called spuriously without a reason.
165165
*
166166
* The callback may be called in an interrupt context and should not
167-
* perform expensive operations such as recv/send calls.
167+
* perform expensive operations, such as recv/send calls.
168168
*
169169
* @note This is not intended as a replacement for a poll or attach-like
170170
* asynchronous API, but rather as a building block for constructing
@@ -179,12 +179,12 @@ class InternetSocket : public Socket {
179179
*
180180
* @see Socket::sigio
181181
* @deprecated
182-
* The behaviour of Socket::attach differs from other attach functions in
183-
* mbed OS and has been known to cause confusion. Replaced by Socket::sigio.
182+
* The behavior of Socket::attach differs from other attach functions in
183+
* Mbed OS and has been known to cause confusion. Replaced by Socket::sigio.
184184
*/
185185
MBED_DEPRECATED_SINCE("mbed-os-5.4",
186-
"The behaviour of Socket::attach differs from other attach functions in "
187-
"mbed OS and has been known to cause confusion. Replaced by Socket::sigio.")
186+
"The behavior of Socket::attach differs from other attach functions in "
187+
"Mbed OS and has been known to cause confusion. Replaced by Socket::sigio.")
188188
void attach(mbed::Callback<void()> func);
189189

190190
/** Register a callback on state change of the socket.

0 commit comments

Comments
 (0)