Socket I/O

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following three primary ways exist for performing I/O in Winsock:

  • Blocking I/O.
  • Nonblocking I/O along with asynchronous notification of network events.
  • Overlapped I/O with completion indication.

Each method is described in the following topics. Blocking I/O is the default behavior, nonblocking mode can be used on any socket that is placed into nonblocking mode, and overlapped I/O can only occur on sockets that are created with the overlapped attribute. It is also interesting to note that the two calls for sending, WSPSend and WSPSendTo, and the two calls for receiving, WSPRecv and WSPRecvFrom, each implement all three methods of I/O. Service providers determine how to perform the I/O operation based on socket modes and attributes and the input parameter values.

See Also

Concepts

Blocking Input/Output
Nonblocking Input/Output
Overlapped Input/Output
Support for Scatter/Gather Input/Output in the SPI
Out-of-Band Data in the SPI