Simple http client and server implemented in C