Web_server

This is a simple header only web server written in C++
Alternatives To Web_server
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Openrct211,899
a day ago1,523gpl-3.0C++
An open source re-implementation of RollerCoaster Tycoon 2 🎢
Mumble5,402
a day ago489otherC++
Mumble is an open-source, low-latency, high quality voice chat software.
Pistache2,893
15 days ago194apache-2.0C++
A high-performance REST toolkit written in C++
Arcemu327
a day ago111agpl-3.0C
World Of Warcraft 3.3.5a server package
Mineserver305
2 years ago12bsd-3-clauseC++
Custom Minecraft server software written in C++ for Windows and Linux
Mmoserver233
a year ago3gpl-3.0C++
SWG:ANH - MMOServer
Fineftp Server215
4 months ago1mitC++
📦 C++ FTP Server Library for Windows 🪟, Linux 🐧 & more 💾
Fineftp Server171
a year ago3mitC++
C++ FTP Server Library for Windows, Linux & more
Novuscore129
3 months agomitCMake
A modern take on MMO Engine design and architecture.
Telegram Qt129
a year ago16lgpl-2.1C++
Qt-based library for Telegram network
Alternatives To Web_server
Select To Compare


Alternative Project Comparisons
Readme

web_server

Is a header-only web_server that does now support HTTPS. The reason I created this is to be able to add endpoints at runtime.

usage

This project uses cmake and asio. Asio will be downloaded on the first build. You only have to include the "src" folder to use this project, provided you have asio already downloaded.

dependencies

OpenSSL - CMake will try to find OpenSSL. If it is found, HTTPS is supported by defining OPEN__SSL BEFORE you include web_server.h

asio - This will be downloaded and included in the first build.

performance_tester

The performance tester was written to get a rough idea of how fast the web_server is. It spawns 16 threads which all connect to the root path of the server and get a response. The time it takes from connection to disconnection is added to a vector

performance

There is a performance_tester folder which will build a a client to test performance.

I've run the performance_tester on a pc with the following specs:

  • AMD Ryzen 9 3900X
  • 32 GB RAM

Using 16 threads on the performance_tester I was getting about 18 000 connections with the average response time about 850 microseconds. This is more than I need so I'm not going to worry about performance too much further.

Popular Server Projects
Popular Cmake Projects
Popular Networking Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus
Server
Cmake
Performance
Webserver
Asio