Unix Network Programming Manual
Prev Page Next Page

Asynchronous Broadcast Example

The following example demonstrates an example of an asynchronous broadcast. The server sets itself up to handle the receipt of both a broadcast are you there type of message and connections from clients that want service. Since there are two sources of I/O, it is necessary to use asynchronous non-blocking I/O. The client and server don't do much else to keep the example simplified.

This program has been simplified considerably to make it easier to follow. Normally, you would do more error checking and modularizing of code. A number of service routines are used that simplify the code and provide common network programming services. They are:

============================================================================
============================================================================


Prev Page Next Page