Skip to Content
The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition
book

The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

by W. Richard Stevens, Bill Fenner, Andrew M. Rudoff
November 2003
Intermediate to advanced
1024 pages
25h 50m
English
Addison-Wesley Professional
Content preview from The Sockets Networking API: UNIX® Network Programming Volume 1, Third Edition

Chapter 14. Advanced I/O Functions

Introduction

This chapter covers a variety of functions and techniques that we lump into the category of “advanced I/O.” First is setting a timeout on an I/O operation, which can be done in three different ways. Next are three more variations on the read and write functions: recv and send, which allow a fourth argument that contains flags from the process to the kernel, readv and writev, which let us specify a vector of buffers to input into or output from, and recvmsg and sendmsg, which combine all the features from the other I/O functions along with the new capability of receiving and sending ancillary data.

We also consider how to determine the amount of data in the socket receive buffer, how to use the C standard ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go

Network Programming with Go

Adam Woodbeck

Publisher Resources

ISBN: 0131411551Purchase book