These examples show how to design a server program that uses the multiple accept() model for handling incoming connection requests. When the multiple accept() server starts up, it does a socket(), bind(), and listen() as normal. It then creates a pool of worker jobs and gives each worker job the listening socket. Each multiple accept() worker then calls accept().
The following figure illustrates how the server, worker, and client jobs
interact when the system uses the multiple accept() server
design.
| [ Information Center Home Page | Feedback ] | [ Legal | AS/400 Glossary ] |