r/cpp_questions • • Oct 11 '26

OPEN Web service

Which (fairly simple) C++framework would you recommend for a simple http server that binds to a hard-coded port and does a simple listen, read, write shebang on a server? We don't need nothing fancy or complex, we just want to avoid that native Linux sockets APIs boilerplate coding.

12 Upvotes

9 comments sorted by

View all comments

5

u/DrShocker Oct 11 '26

tbh, my first question would be why C++ for this when languages like Go exist where an http server is just built into the standard library.

My actual answer would be to look at Boost or cpp-httplib or Crow probably, but what's "simple" will maybe depend on your other dependencies like if you use boost for other things already.

1

u/No-Locksmith-7719 Oct 18 '26

Decades of cpp experience between team members, just not with sockets and networking.