|
|
Web Server is easy
Web server always looks like a complicated project but it is not true. Basic Web server
can be written using several basic API functions:
socket
bind
listen
accept
recv
send
shutdown
closesocket
WSAStartup
WSACleanup
_beginthreadex
_endthreadex
|
|
The book I was using
Johnson M. Hart
Win32 System Programming, second edition.
Addisong-Wesley. 2001
|
The core part of multithreaded web server needs about 200 lines. With some auxiliary stuff
my web server is about 1700 lines that is very much less than Apache.
|