This program, HTTPD
implements
a simple HTTP Daemon, by using the portable TCP/IP
interfaces.
The basic outline of the program is quite simple. After getting a connector, loop and do the following:
TCP.Accept
to get a
new service. Each team will be assigned a port number by the instructor.
ConnRW
interface.
Lex.Match
for this, or role your own character by character.
"GET"
message, look in the current directory of your file system for the file in question.
So, the URL
maps to the HTTP request to the server running on port 8080 of the machine "host"http://host:8080/welcome.html
which can map toGET /welcome.html
in your file system../welcome.html