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
- How to associate a socket with a FILE stream using fdopen(3)
- How to create and apply read and write FILE streams
- Issues concerning closing streams associated sockets
- Choosing and establishing the correct buffering technique for your FILE streams
- Defining Buffer Operation in socket
- The interrupted system call issue
- The RPN Engine Calculator Engine Code
- The RPN main server code
Mastery of these topics will give you additional ways to solve your network programming assignments, and avoid surprises.
No comments:
Post a Comment