Server or Listening Sockets Programming
What do we have in this chapter?
Accepting Client Connections
Closing the Server
Set socket permissions
Posting Asynchronous Operations
Asynchronous Data Transfer
Canceling Pending Asynchronous Operations
This chapter will introduce the basics of creating a connection-oriented server socket that handles client requests. It also discusses the importance of socket security for servers and gave an introduction to the asynchronous Socket methods. Server sockets should always set the ExclusiveAddressUse option to ensure that no other socket can bind to the same interface. Also, robust servers should use asynchronous I/O to efficiently use resources. We will also see that asynchronous socket I/O is not much more difficult than blocking I/O. The next chapter will introduce the .NET Framework classes that deal with the HTTP protocol, and in Chapter 14, we’ll discuss what can be done to ensure high performance with .NET Framework–based networking.
|< Client Sockets | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7 | Part 8 | HTTP With .NET >|