tags:

views:

288

answers:

5

Is there any reference or library that would create a webserver (help)? (in C++)

+4  A: 

You might find this interesting, it's how you create a webserver in C which is not totaly different from C++.

However if you are using Windows and C++ you might want to look at A simple Webserver in C++

Filip Ekberg
A: 

With all the awesome options out there, it seems like reinventing the wheel. But to answer your question, here is a small tutorial on building a simple webserver in C++. Might be worth a try. One big advantage I can see from doing this is low overhead. Good luck with your project.

Jeremy Morgan
+2  A: 

You can use Boost Asio to do that, see the HTTP server examples

Ricardo Muñoz
I beleive 80% of the C++ answers could direct a would-be developer at a huge heap of code known as the "Boost Library". It's huge, messy and very confusing to new devs.
NTDLS
"messy" and "very confusing" are subjective terms, in my company our new devels start to learn c++ with a selected set of books and code, and they use Boost without problems so the "messy" and "very confusing" terms does not apply in all circumstances :)And huge... well you can use bjam to use only what you need.
Ricardo Muñoz
+1  A: 

Try ACE

Inso Reiges
+1  A: 

You should look at Wt (pronounced 'Witty'). It is a very impressive toolkit IMHO. Also, you could use the Qt framework - there is a simple web service example available here.

Rob