README for zjhttpd ================== Hello folks, this is the second try to write a webserver. The first try (smeagol) was basically a good thing, but it was buggy as hell and not well designed. It was the first try, and I never wrote such a big program before. For the second try, there are some ideas which I want to have in mind when coding: - *no* problems with types, *no* implicit casts from signed to unsigned (they are really stupid, but easy to be avoided), now every value has a proper type (uid_t and gid_t exist :-)). - *no* namespace pollution, functions from a different module begin with _ like config_load_file(). - local functions (parse, cut, foo, bar) are static and do not have external linkage - this time, the debugging-stuff is kept and #ifdefd ;-) - I'll try to provide a suite of debugging-scripts that will be able to automagically test the program and its features, so it will be easy to test whether something that worked a week ago also works now. - I'll try to be very careful of buffer overflows produced by while-loops that copy stuff from a to b, that was a really big problem in smeagol. - this time there will be enough comments (certainly...) and things that are not obvious (this funky switch-statement in smeagol...) will be removed as soon as I notice that I cannot understand them ;-)