claudioc / bzot

An HTTP server because we need more of them

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BZOT

This is apparently something similar to an HTTP server. A server which speaks HTTP. You send it HTTP requests, and it returns HTTP responses.

Seriously?

I was once very good at C and I miss those years. What should I do, then? But write some random C, obviously.

But what can I do? A network server, of course. And why HTTP? Well, because…

  • It's pretty straightforward (you know how it's supposed to work and how to start testing its features)
  • There are plenty of clients to test it, and it's easy to benchmark
  • Can be quite complicated, addressing all those weird edge cases right?
  • It's an incremental effort (start from HTTP, add HTTPS, then HTTP/2…)

Goals

None. Just write some C and have fun parsing headers and read cconfiguration files.

I will probably stop once I feel the need of automake/autoconf.

Also[segmentation fault]

Status

  • Learn how to compile and debug C in macOs
  • "Hello world!"
  • Basic networking
  • I have a server, and I can connect to it
  • Fork or threads? Fork
  • Blocking or not blocking? Blocking with fork
  • Read the HTTP request
  • Reply "Hello from Bzot" to the browser
  • Parse the HTTP request

About

An HTTP server because we need more of them

License:GNU General Public License v3.0


Languages

Language:C 95.2%Language:Makefile 4.8%