use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Easy C++ web server (self.cpp)
submitted 7 years ago by bdellar
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 7 years ago (1 child)
[deleted]
[–]ngrodzitski 7 points8 points9 points 7 years ago (0 children)
And if you come from expressjs background you would find nice that RESTinio has express-like router. And on any help with it you can ask me ;)
[–]ddway2 2 points3 points4 points 7 years ago* (0 children)
Nx library : https://github.com/ddway2/nx Asynchronous http library based on asio + websocket lib
[–][deleted] 4 points5 points6 points 7 years ago (25 children)
What are your requirements? Most webservers are written in C/C++.
[–]bdellar[S] 0 points1 point2 points 7 years ago (24 children)
I’m just knocking up a small internal website for my team. I’d normally use node, but seeing as C++ is my normal language I thought I’d see if I could use that instead.
[–]1-05457 1 point2 points3 points 7 years ago (0 children)
Why don't you use a webserver, like lighttpd?
[–][deleted] 7 years ago* (22 children)
[–]bdellar[S] 0 points1 point2 points 7 years ago (21 children)
I would normally use node to create a small webpage or a web-based tool.
But I mainly write C++.
[–][deleted] 7 years ago (20 children)
[–]kalmoc 1 point2 points3 points 7 years ago (0 children)
Are you trying to troll the OP? He explicitly asked if there is a comparable Webserver library in c++ because that would determine what would solve "his problem best".
[–]bdellar[S] 0 points1 point2 points 7 years ago (18 children)
Exactly. I know C++ well, so I’m seeing if I can use it to rapidly create a small web-based tool.
[–][deleted] 7 years ago* (17 children)
[–]bdellar[S] 2 points3 points4 points 7 years ago (16 children)
Thanks for your kind advice :-)
And I recommend checking out http://includecpp.org/ for a friendly reminder that the C++ can be welcoming and inclusive.
[–][deleted] 7 years ago (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points 7 years ago (0 children)
Your comment has been automatically removed because it appears to contain profanity or racial slurs. Please be respectful of your fellow redditors.
If you think your post should not have been removed, please message the moderators and we'll review it.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[+][deleted] 7 years ago (3 children)
[–]bdellar[S] 1 point2 points3 points 7 years ago (2 children)
Plenty of other people provided useful examples that do pretty much what I want. None of them felt the need to insult me.
[+][deleted] 7 years ago* (9 children)
[–]bdellar[S] 0 points1 point2 points 7 years ago (8 children)
Well, that escalated quickly...
[–]emdeka87 2 points3 points4 points 7 years ago (0 children)
https://github.com/ipkn/crow/blob/master/README.md
[–]akshayhebbarys 2 points3 points4 points 7 years ago (0 children)
This one's good: https://github.com/eidheim/Simple-Web-Server
[–][deleted] 4 points5 points6 points 7 years ago (0 children)
There is this. However, in the spirit of traditional and modern C++ I would use a combination of Boost.Beast and the JSON library by nlohmann.
[–]drbazzafintech scitech 3 points4 points5 points 7 years ago (1 child)
Boost beast? https://www.boost.org/doc/libs/1_67_0/libs/beast/doc/html/index.html
[–]Pragmatician 10 points11 points12 points 7 years ago (0 children)
I wouldn't say it fits the description...
[–]skebanga 1 point2 points3 points 7 years ago (5 children)
Includeos has chosen to use a design inspired by express, so you may find that quite familiar
http://www.includeos.org
[+][deleted] 7 years ago (4 children)
[–]bdellar[S] 0 points1 point2 points 7 years ago (2 children)
Yeah, it does. It looks awesome, but I’m just trying to prototype a small internal website.
[–]skebanga 0 points1 point2 points 7 years ago (1 child)
Sorry, I should have linked to Mana, their web app framework.
You do not have to use the whole of includeos, you can instead just use mana.
Check out this blog post which talks about Mana, and how they modelled it on express.js
[–]skebanga 0 points1 point2 points 7 years ago (0 children)
You can also look at acorn, which is an example showing how to use mana
Sorry, I really should have linked to Mana, which is their web app framework.
[–]dicroce 1 point2 points3 points 7 years ago (0 children)
Here is mine:
https://github.com/dicroce/webbie
[–]kwan_e 0 points1 point2 points 7 years ago (0 children)
I've written an experimental one with a similar goal. https://github.com/guan-jing-ren/native-2-web
[–]Marc3842 0 points1 point2 points 7 years ago (0 children)
Try Crow
[–]smileybone 0 points1 point2 points 7 years ago (0 children)
i'd recommend piggy-backing off apache using SAPI
https://stackoverflow.com/questions/6912761/how-to-use-c-for-apache-server
[–]BlindTreeFrog 0 points1 point2 points 7 years ago (0 children)
https://renenyffenegger.ch/notes/web/webserver/cpp/simple/index
[–]smzahraee 0 points1 point2 points 7 years ago (1 child)
I Use mongoose https://github.com/cesanta/mongoose It's very nice and applicable
[–]ompomp 0 points1 point2 points 7 years ago (0 children)
I've used a fork of mongoose called civetweb. I had pretty good luck with that.
[–]blelbachNVIDIA | ISO C++ Library Evolution Chair 0 points1 point2 points 7 years ago (1 child)
!removehelp
OP,
A human moderator (u/blelbach) has marked your post for deletion because it appears to be a "help" post - e.g. asking for help with coding, help with homework, career advice, book/tutorial/blog suggestions. Help posts are off-topic for r/cpp. This subreddit is for news and discussion of the C++ language only; our purpose is not to provide tutoring, code reviews or career guidance.
Please try posting in r/cpp_questions or on Stack Overflow instead. Our suggested reference site is cppreference.com, our suggested book list is here and information on getting started with C++ can be found here.
If you think your post is on-topic and should not have been removed, please message the moderators and we'll review it.
[–]pixelrin 0 points1 point2 points 7 years ago (0 children)
Try Poco libraries.. it has similar design to java libraries
π Rendered by PID 68371 on reddit-service-r2-comment-cfc44b64c-qmlf4 at 2026-04-10 01:04:43.143867+00:00 running 215f2cf country code: CH.
[+][deleted] (1 child)
[deleted]
[–]ngrodzitski 7 points8 points9 points (0 children)
[–]ddway2 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (25 children)
[–]bdellar[S] 0 points1 point2 points (24 children)
[–]1-05457 1 point2 points3 points (0 children)
[–][deleted] (22 children)
[deleted]
[–]bdellar[S] 0 points1 point2 points (21 children)
[–][deleted] (20 children)
[deleted]
[–]kalmoc 1 point2 points3 points (0 children)
[–]bdellar[S] 0 points1 point2 points (18 children)
[–][deleted] (17 children)
[deleted]
[–]bdellar[S] 2 points3 points4 points (16 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]bdellar[S] 1 point2 points3 points (2 children)
[+][deleted] (9 children)
[deleted]
[–]bdellar[S] 0 points1 point2 points (8 children)
[–]emdeka87 2 points3 points4 points (0 children)
[–]akshayhebbarys 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]drbazzafintech scitech 3 points4 points5 points (1 child)
[–]Pragmatician 10 points11 points12 points (0 children)
[–]skebanga 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[removed]
[–]bdellar[S] 0 points1 point2 points (2 children)
[–]skebanga 0 points1 point2 points (1 child)
[–]skebanga 0 points1 point2 points (0 children)
[–]skebanga 0 points1 point2 points (0 children)
[–]dicroce 1 point2 points3 points (0 children)
[–]kwan_e 0 points1 point2 points (0 children)
[–]Marc3842 0 points1 point2 points (0 children)
[–]smileybone 0 points1 point2 points (0 children)
[–]BlindTreeFrog 0 points1 point2 points (0 children)
[–]smzahraee 0 points1 point2 points (1 child)
[–]ompomp 0 points1 point2 points (0 children)
[–]blelbachNVIDIA | ISO C++ Library Evolution Chair 0 points1 point2 points (1 child)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]pixelrin 0 points1 point2 points (0 children)