Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

61. Sockets: Advanced Topics

Chapter 61. Sockets: Advanced Topics

This chapter considers a range of more advanced topics relating to sockets programming, including the following:

  • the circumstances in which partial reads and writes can occur on stream sockets;

  • the use of shutdown() to close one half of the bidirectional channel between two connected sockets;

  • the recv() and send() I/O system calls, which provide socket-specific functionality not available with read() and write();

  • the sendfile() system call, which is used in certain circumstances to efficiently output data on a socket;

  • details of the operation of the TCP protocol, with the aim of eliminating some common misunderstandings that lead to mistakes when writing programs that use TCP sockets;


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint