This is a very simple HTTP server for Unix, using fork(). It's very easy to use
- include header
httpd.h - write your route method, handling requests.
- call
serve_forever("12913")to start serving on port 12913
| // | |
| // Simple listener.c program for UDP multicast | |
| // | |
| // Adapted from: | |
| // http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html | |
| // | |
| // Changes: | |
| // * Compiles for Windows as well as Linux | |
| // * Takes the port and group on the command line | |
| // |