Skip to content

Commit cb6acc1

Browse files
author
msebolt
committed
merge
1 parent 36d7ca5 commit cb6acc1

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/mfc/reference/casyncsocket-class.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ A buffer for the incoming data.
11271127
The length of *`lpBuf`* in bytes.
11281128

11291129
*`nFlags`*<br/>
1130-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (||):
1130+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
11311131

11321132
- `MSG_PEEK` Peek at the incoming data. The data is copied into the buffer but is not removed from the input queue.
11331133

@@ -1218,7 +1218,7 @@ A pointer to a [`SOCKADDR`](/windows/win32/winsock/sockaddr-2) structure that ho
12181218
A pointer to the length of the source address in *`lpSockAddr`* in bytes.
12191219

12201220
*`nFlags`*<br/>
1221-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (||):
1221+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
12221222

12231223
- `MSG_PEEK` Peek at the incoming data. The data is copied into the buffer but is not removed from the input queue.
12241224

@@ -1262,7 +1262,7 @@ To handle IPv6 addresses, use [`CAsyncSocket::ReceiveFromEx`](#receivefromex).
12621262

12631263
For sockets of type `SOCK_STREAM`, as much information as is currently available up to the size of the buffer supplied is returned. If the socket has been configured for in-line reception of out-of-band data (socket option `SO_OOBINLINE`) and out-of-band data is unread, only out-of-band data will be returned. The application can use the `IOCtlSIOCATMARK` option or `OnOutOfBandData` to determine whether any more out-of-band data remains to be read. The *`lpSockAddr`* and *`lpSockAddrLen`* parameters are ignored for `SOCK_STREAM` sockets.
12641264

1265-
For datagram sockets, data is extracted from the first enqueued datagram, up to the size of the buffer supplied. If the datagram is larger than the buffer supplied, the buffer is filled with the first part of the message, the excess data is lost, and `ReceiveFrom` returns a value of SOCKET_ERROR with the error code set to `WSAEMSGSIZE`.
1265+
For datagram sockets, data is extracted from the first enqueued datagram, up to the size of the buffer supplied. If the datagram is larger than the buffer supplied, the buffer is filled with the first part of the message, the excess data is lost, and `ReceiveFrom` returns a value of `SOCKET_ERROR` with the error code set to `WSAEMSGSIZE`.
12661266

12671267
If *`lpSockAddr`* is nonzero, and the socket is of type `SOCK_DGRAM`, the network address of the socket which sent the data is copied to the corresponding [`SOCKADDR`](/windows/win32/winsock/sockaddr-2) structure. The value pointed to by *`lpSockAddrLen`* is initialized to the size of this structure, and is modified on return to indicate the actual size of the address stored there. If no incoming data is available at the socket, the `ReceiveFrom` call waits for data to arrive unless the socket is nonblocking. In this case, a value of `SOCKET_ERROR` is returned with the error code set to `WSAEWOULDBLOCK`. The `OnReceive` callback can be used to determine when more data arrives.
12681268

@@ -1296,7 +1296,7 @@ Reference to a `CString` object that receives a dotted number IP address.
12961296
Reference to a `UINT` that stores a port.
12971297

12981298
*`nFlags`*<br/>
1299-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ **`OR`** operator:
1299+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
13001300

13011301
- `MSG_PEEK` Peek at the incoming data. The data is copied into the buffer but is not removed from the input queue.
13021302

@@ -1366,7 +1366,7 @@ A buffer containing the data to be transmitted.
13661366
The length of the data in *`lpBuf`* in bytes.
13671367

13681368
*`nFlags`*<br/>
1369-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (||):
1369+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
13701370

13711371
- `MSG_DONTROUTE` Specifies that the data should not be subject to routing. A Windows Sockets supplier can choose to ignore this flag.
13721372

@@ -1455,7 +1455,7 @@ The port identifying the socket application.
14551455
The network address of the socket to which this object is connected: a machine name such as "ftp.microsoft.com," or a dotted number such as "128.56.22.8".
14561456

14571457
*`nFlags`*<br/>
1458-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (||):
1458+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
14591459

14601460
- `MSG_DONTROUTE` Specifies that the data should not be subject to routing. A Windows Sockets supplier can choose to ignore this flag.
14611461

@@ -1551,7 +1551,7 @@ The port identifying the socket application.
15511551
The network address of the socket to which this object is connected: a machine name such as "ftp.microsoft.com," or a dotted number such as "128.56.22.8".
15521552

15531553
*`nFlags`*<br/>
1554-
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (||):
1554+
Specifies the way in which the call is made. The semantics of this function are determined by the socket options and the *`nFlags`* parameter. The latter is constructed by combining any of the following values with the C++ logical **OR** operator (`||`):
15551555

15561556
- `MSG_DONTROUTE` Specifies that the data should not be subject to routing. A Windows Sockets supplier can choose to ignore this flag.
15571557

docs/mfc/reference/ctreectrl-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ Mask indicating one or more states to be retrieved. For more information on poss
799799

800800
### Return Value
801801

802-
A `UINT` that holds the C++ logical **OR** operator (||) of the values specified by `nStateMask`. For information on possible values, see [`CTreeCtrl::GetItem`](#getitem). To find the value for a specific state, perform a C++ bitwise **AND** operator (&&) f the state value and the return value, as shown in the following example.
802+
A `UINT` that holds the C++ logical **OR** operator (`||`) of the values specified by `nStateMask`. For information on possible values, see [`CTreeCtrl::GetItem`](#getitem). To find the value for a specific state, perform a C++ bitwise **AND** operator (`&&`) f the state value and the return value, as shown in the following example.
803803

804804
### Example
805805

0 commit comments

Comments
 (0)