chapter 5 Under the Hood

Some of the subtleties of network programming are difficult to grasp without some understanding of the data structures associated with the socket implementation and certain details of how the underlying protocols work. This is especially true of TCP sockets (i.e., instances of TcpClient, TcpListener, or a TCP instance of Socket). This chapter describes some of what goes on in the runtime implementation when you create and use an instance of Socket or one of the higher level TCP classes that utilize sockets. Unless specifically stated otherwise, references to the behavior of the Socket class in this chapter also apply to TcpClient and TcpListener classes, which create Socket instances “under the hood.” (The initial discussion ...

Get TCP/IP Sockets in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.