In this chapter, we will cover the following recipes:
Using fixed length I/O buffers
Using extensible stream-oriented I/O buffers
Writing to a TCP socket synchronously
Reading from a TCP socket synchronously
Writing to a TCP socket asynchronously
Reading from a TCP socket asynchronously
Canceling asynchronous operations
Shutting down and closing a socket