Skip to content

o-oconnell/RawHttpServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RawHttpServer

This is a raw socket HTTP server, which means it's responsible for handling the three-way handshake and constructing packets. Memory is managed using arenas.

Usage:

Disable interference from the kernel TCP stack with: sudo iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP

Run the server and make a request:

gcc server.c && sudo ./a.out

curl localhost:8080

References:

About

HTTP server with a custom TCP stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published