Skip to content

piyushdev04/Multi-threaded_Web-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multithreaded http web server in c++

this is a basic http web server built from scratch in c++ using sockets, threads, epoll, and a minimal frontend dashboard.

output

screenshot

features

  • multithreaded request handling
  • uses epoll for efficient connection management
  • serves static files from public/ directory
  • handles GET and POST requests
  • logs client ip, path, thread id, response time, and cache status
  • live dashboard showing:
    • recent logs
    • active thread count
    • cache hit/miss stats
  • /logs endpoint returns real-time json logs
  • frontend fetches logs using ajax and updates the dashboard

how to run

g++ server.cpp -o server -lpthread
./server

license

this project is licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published