26

Are there any open source, fast web server libraries? Thanks.

Alex B
  • 82,554
  • 44
  • 203
  • 280
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
  • Duplicate? http://stackoverflow.com/questions/738273/open-source-c-c-embedded-web-server, http://stackoverflow.com/questions/175507/c-c-web-server-library, http://stackoverflow.com/questions/1205753/which-embedded-web-server-to-use-for-my-app-gui – Éric Malenfant Sep 28 '09 at 13:14

4 Answers4

24

mongoose (formely shttpd, GPL v2 and commercial license), libmicrohttpd (LGPL v2.1 license).

KindDragon
  • 6,558
  • 4
  • 47
  • 75
Alex B
  • 82,554
  • 44
  • 203
  • 280
3

As far as I know, libevent has a great event-driven and lightweight http server header.

Chaosteil
  • 150
  • 2
  • 8
1

If you want to play with the concept you can check this codproject article.

You can also check this wikipedia article whcih compares major light weight embedded server.

You can check AppWeb Http Server also.

MRG
  • 3,219
  • 1
  • 26
  • 35
-6

Take a look at Qt. I don't know if it's fast enough for you, but it has a nice network module. You also get SQL and XML modules, and a lot more (which can be nice depending on your needs), for free. GPL/LGPL and cross-platform.

http://doc.trolltech.com/4.5/qtnetwork.html

m.m.
  • 127
  • 3
  • 6
    Qt network library doesn't give you a way of handling http protocol. It also doesn't come with a thread pooled select server. You would have to construct everything from TCP up to an http server capable of handling the [C10k problem](http://www.kegel.com/c10k.html). As such, I do not find this recommendation useful. – nurettin Sep 30 '13 at 06:18