Sample Code

Jan 17

Simple HTTP server: [View Online] [Download]

This sample is a program I wrote several months ago to test GUF's networking architecture. It responds to HTTP requests with a static web page. The trick is, this program uses fully asynchronous I/O. So, it could theoretically handle thousands of connections at one time, although such situations are somewhat rare for a typical web server.

Lots in GUF has changed since this program was written. The network architecture has been completely re-designed, for one, and the way programs are started has been changed significantly. So, this code has no chance of compiling at the moment. You can still look at the code to get an idea of what GUF code looks like, though you should note that it will get much nicer in later versions. :)