BSD Sockets Interface Programmer's Guide
Contents
9
Sending and Receiving Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
Sending Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
Receiving Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
Closing a Socket. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Example Using UNIX Domain Datagram Sockets . . . . . . . . . . . . . . . .160
8. Programming Hints
Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167
Using Diagnostic Utilities as Troubleshooting Tools. . . . . . . . . . . . . . .168
Adding a Server Process to the Internet Daemon . . . . . . . . . . . . . . . . .169
Summary Tables for System and Library Calls. . . . . . . . . . . . . . . . . . .173
Portability Issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
Porting Issues for IPC Functions and Library Calls . . . . . . . . . . . . .177
Porting Issues for Other Functions and Library Calls Typically Used by
IPC178
A. BSD Sockets Quick Reference Table
Quick Reference Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
Glossary