Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Posting comics on my github site

LinuxRocks2000

💭
Posting comics on my github site
View GitHub Profile
@LinuxRocks2000
LinuxRocks2000 / httpserver.hpp
Last active Jan 14, 2022
One-file threaded HTTP server in C++ with support for callbacks. Updated as I need it, so eventually will be state aware and etc.
View httpserver.hpp
// Socket includes
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <cstring>
#include <fcntl.h>
// STD includes
#include <thread>
#include <string>
View index.md

hi! this is my first gist! (and i still don't quite know what a gist is!)

funny, i have no idea what i'm doing!