30.8 TCP Preforked Server, Thread Locking Around accept


Exercises

29.1

What is the purpose of the canjump flag in Figure 29.11?

29.2

In our udpcksum program, common error replies are an ICMP "port unreachable" (the destination is not running a name server) or an ICMP "host unreachable." In either case, we need not wait for a timeout of our udp_read in Figure 29.10 because the ICMP error is essentially a reply to our DNS query. Modify the program to catch these ICMP errors.




UNIX Network Programming Volume 1, Third Edition
Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
ISBN: 0131411551
EAN: 2147483647
Year: 2003
Pages: 441

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net