Chapter 5

Winsock 2 I/O Methods

 

 

 

COMPLETED PROJECT DOWNLOAD

 

What do we have in this chapter?

 

  1. Socket Modes

  2. Blocking Mode

  3. Non-blocking Mode

  4. Socket I/O Models

  5. The blocking Model

  6. The select Model

  7. The select() Program Example

  8. The Client Test Program Example

  9. The Client-server Testing

  10. The WSAAsyncSelect() Model

  11. Message Notification

  12. The WSAAsyncSelect() Model Program Example

  13. Running the Client-server Program

  14. The WSAEventSelect Model

  15. Event Notification

  16. The WSAEventSelect server/receiver model Program Example

  17. Running the Client and Server Program

  18. The Overlapped Model

  19. Event Notification

  20. The Overlapped Model Program Example

  21. Running the Server and Client Program

  22. The Overlapped Example Using AcceptEx()

  23. Running the Server and Client Program

  24. Completion Routines

  25. The Overlapped I/O Model With Callback Routines Example

  26. The Client-server Testing

  27. The Overlapped I/O Model With Callback Routines – AcceptEx()

  28. Testing the Client-server Program

  29. The Completion Port Model

  30. Worker Threads and Completion Ports

  31. The Completion Port Model Program Example

  32. Testing the Client-server Program

  33. Completion Ports and Overlapped I/O

  34. Per-handle Data and Per-I/O Operation Data

  35. I/O Model Consideration

  36. Client Development

  37. Server Development

 

Summary

 

At this point, we have covered the various I/O models available in Winsock. These models allow applications to tailor Winsock I/O according to their needs, from simple blocking I/O to high-performance completion port I/O for the maximum throughput possible. Up to this point, you have learned about available transport protocols, socket creation attributes, creating a basic client/server application, and other fundamental Winsock topics.

 

 

 

 

HOME

 

 
Custom Search

< Chap 4: Other Supported Protocols | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Part 8 | Part 9 | Part 10 | Part 11 | Chap 6: Scalable Winsock2 Applications >