Mar 6th, 2006
Jayant lives again!
I must say I’m proud of the progress with Jayant. It can now serve basic html pages and handle 404’s. Each connection is processed via a pthread as I said the in the previous post. I fixed two buffer overflows in it today as well.
Tomorrow I’m going to try to get a mime type system up. I want to the /etc/mime.types file if possible, this means I’m going to need a custom parser for it. I’m debating whether to write one, or go the easy route and find a public domain one. I guess it just depends on how much time school gives me.
As of today, Jayant also runs on two platforms with no modifications, FreeBSD and linux. So I can only assume it will run on any other unix. I’ll be trying BeOS within the next few days, as well as a native SkyOS compile.
cody@devnulled:/home/cody/jayant>./jhttpd
Server Port: 8181
Server Log Dir: /home/cody/jayant
Server Signature: JayantHTTP (FreeBSD) 1.0.0
Adding callback for fd 3
Realloc’ing fd_tasks
No callback for 1
No callback for 2
Listening on port 8181 fd 3
cody@laptop:~/jayant$ ./jhttpd
Server Port: 8181
Server Log Dir: /home/cody/jayant
Server Signature: JayantHTTP (Linux) 1.0.0
Adding callback for fd 3
Realloc’ing fd_tasks
No callback for 1
No callback for 2
Listening on port 8182 fd 3
Here is a little bite to chew on, the first page served by it:

Click for larger image
