Skip to content
devhub.
ExploreCompareSaved
Sign in
DevHubBuilt for curious developers. Data from GitHub.
Back to repositories
Public repository / Vaibhavtripathi7

c-http-server

A small IPv4 TCP server written in C from scratch. It starts as a single connection loop and grows into a select() based server that handles many clients at once, all in one process with no threads.

View on GitHub
0Stars
0Forks
0Open issues
0Subscribers

Language distribution

Share of source bytes reported by GitHub

C100%

Recent activity

Latest commits on the default branch

docs: add gdb steps for the three bugs in READMEVaibhavtripathi7 · Jul 25, 2026docs: add README explaining the server and the bugs i fixedVaibhavtripathi7 · Jun 19, 2026chore: ignore the compiled main binaryVaibhavtripathi7 · Jun 19, 2026fix: FD_CLR the fd after close so select stops erroring with EBADFVaibhavtripathi7 · Jun 18, 2026fix: flush stdout after prints so the logs dont sit in the bufferVaibhavtripathi7 · Jun 16, 2026fix: give buffer real memory, the uninitialised pointer was segfaultingVaibhavtripathi7 · Jun 15, 2026feat: use select to watch all sockets so one loop serves many clientsVaibhavtripathi7 · Jun 14, 2026feat: send a small reply back to client after reading its requestVaibhavtripathi7 · Jun 12, 2026feat: add a loop which accepts every client request one by one and loads data in buffer, to read and writeVaibhavtripathi7 · Jun 11, 2026feat: add a accept call so it creates client socket and can read or write requestsVaibhavtripathi7 · Jun 9, 2026

Project details

Created Jun 2026 Updated Jul 2026

Contributors

1
Vaibhavtripathi7's avatarVaibhavtripathi713 commits