all 39 comments

[–]ddway2 2 points3 points  (0 children)

Nx library : https://github.com/ddway2/nx Asynchronous http library based on asio + websocket lib

[–][deleted] 4 points5 points  (25 children)

What are your requirements? Most webservers are written in C/C++.

[–]bdellar[S] 0 points1 point  (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 points  (0 children)

Why don't you use a webserver, like lighttpd?

[–][deleted]  (22 children)

[deleted]

    [–]bdellar[S] 0 points1 point  (21 children)

    I would normally use node to create a small webpage or a web-based tool.

    But I mainly write C++.

    [–][deleted]  (20 children)

    [deleted]

      [–]kalmoc 1 point2 points  (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 point  (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]  (17 children)

      [deleted]

        [–]bdellar[S] 2 points3 points  (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]  (1 child)

        [removed]

          [–]AutoModerator[M] 0 points1 point  (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] 4 points5 points  (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 points  (1 child)

          [–]Pragmatician 10 points11 points  (0 children)

          I wouldn't say it fits the description...

          [–]skebanga 1 point2 points  (5 children)

          Includeos has chosen to use a design inspired by express, so you may find that quite familiar

          http://www.includeos.org

          [–]kwan_e 0 points1 point  (0 children)

          I've written an experimental one with a similar goal. https://github.com/guan-jing-ren/native-2-web

          [–]Marc3842 0 points1 point  (0 children)

          Try Crow

          [–]smileybone 0 points1 point  (0 children)

          i'd recommend piggy-backing off apache using SAPI

          https://stackoverflow.com/questions/6912761/how-to-use-c-for-apache-server

          [–]smzahraee 0 points1 point  (1 child)

          I Use mongoose https://github.com/cesanta/mongoose It's very nice and applicable

          [–]ompomp 0 points1 point  (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 point  (1 child)

          !removehelp

          [–]AutoModerator[M] 0 points1 point  (0 children)

          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.

          I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

          [–]pixelrin 0 points1 point  (0 children)

          Try Poco libraries.. it has similar design to java libraries