Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
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, WSPSendand WSPSendTo, and the two calls for receiving, WSPRecvand 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.