Sunday, August 28, 2011

Using Standard I/O on Sockets

The example code in the previous tutorial (basic socket concept) have all used the read(2) or write(2) system calls to perform read and write operations on sockets. The only exception to this rule was recvfrom (2) and sendto(2) function calls, which were used to read and write datagrams. There are application disadvantages to using the simple read(2) and write(2) calls, however. This post will explore
Mastery of these topics will give you additional ways to solve your network programming assignments, and avoid surprises.

No comments:

Post a Comment