HPlogo HP 9000 Networking: BSD Sockets Interface Programmer's Guide > Chapter 3 Advanced Topics for Stream Sockets

Using Read and Write to Make Stream Sockets Transparent

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

An example application of read and write with stream sockets is to fork a command with a socket descriptor as stdout. The peer process can read input from the command. The command can be any command and does not have to know that stdout is a socket. It might use printf, which results in the use of write. Thus, the stream sockets are transparent.

© 1997 Hewlett-Packard Development Company, L.P.