<< |
Winsock Programmer's FAQ |
>> |
This server follows the age-old Berkeley
The Notice that we have to keep a list of clients and an I/O buffer for each client in this version. That's the price of non-synchronous I/O: you have to keep a lot of state around so you can juggle between many connections within a single thread. Building the ProgramThe only module you will need to compile this program, aside from the common files listed on the main examples page, is select-server.cpp. The comment at the top of the file gives complete compilation instructions; alternately, you can use the common Makefile. |
<< Multithreaded Server | Ping: ICMP.DLL Method >> |
Last modified on 1 May 2000 at 05:58 UTC-7 | Please send corrections to tangent@cyberport.com. |
< Go to the main FAQ page |
|
<<< Go to my Home Page |