1 ### DispatchWebServer ###
3 ===========================================================================
6 Sample code showing how to: Use dispatch in a real world setting,
7 schedule file and network I/O, use vnode sources, create and manage
10 ===========================================================================
13 Mac OS X version 10.6 Snow Leopard
15 ===========================================================================
18 Mac OS X version 10.6 Snow Leopard
20 ===========================================================================
23 DispatchWebServer.c - the web server
25 ===========================================================================
28 Running the program will start a web server on port 8080, it will read
29 content from ~/Sites and write ~/Library/Logs/DispatchWebServer-transfer.log
30 each time complets a request.
32 It will write some to stdout when it makes new connections, recieves
33 requests, completes requests, and when it closes connections. It also
34 shows the state of each actiave request once evey five seconds and any
35 time you send a SIGINFO signal to it.
37 ===========================================================================
38 CHANGES FROM PREVIOUS VERSIONS:
43 ===========================================================================
44 Copyright (C) 2009 Apple Inc. All rights reserved.