Sunday, 21 November 2010

The C++ Network Library v0.8 Out Now!

The C++ Network Library team is proud to announce the availability of version 0.8 of the library after one whole week of getting feedback on the Beta version. The library is being maintained by Dean Michael Berris the project founder (and author of this blog) and is being supported by the C++ Network Library Developers through the cpp-netlib developers mailing list. You can get the latest version of the library from the Github repository downloads page. You can also find out more about cpp-netlib's 0.8 release from the online home of its documentation at

This is the eighth minor version release of the library which is steadily working towards the version 1.0 release to be submitted for review to the Boost C++ Library for wider availability. You can send in your library feedback and/or issues through the project's Github Issues page, where the maintainers of the project will then appropriately schedule the issues to be addressed for future release. If you don't have a Github account, you can subscribe to the developer mailing list and send in your feature requests and participate in the discussion with the project developers as well.

New in 0.8

The library features a new asynchronous HTTP server template to allow for handling requests asynchronously and allowing handlers to write back data to the connections. This has been one of the most requested features from users, to enable writing high-throughput and scalable web applications with cpp-netlib. Version 0.8 also comes with a simple and short (less than 200 lines of code) example of an HTTP server that has been benchmarked locally on an Intel Core 2 4400 with 2GB of RAM in Linux 64-bit to be able to serve a 7.4Kb file at roughly 3800 RPS. Over the network, it performs at a slightly lower rate of ~246 RPS on a home WLAN 802.11b/g network because of the communication costs -- sustained transfer rate of 1 megabyte per second -- but the performance profile of the application doesn't go higher than 5% CPU utilization at 1000 concurrent connections. Benchmarks were performed using Apache Bench (Apache AB).

In 0.8 the library also now provides a means of checking whether a given asynchronous response object is ready with the full data requested by the client. In 0.7 the library introduced an active HTTP client implementation that returns asynchronously built responses. There used to be no way to check whether a given response is ready to be dealt with. Because of user feedback in the development of 0.8, the developers were able to implement a check for readiness which is now available in the 0.8 release.

What's coming for 0.9

With 0.8 out the door, the cpp-netlib development team is ramping up development of 0.9 where users should look out for the following features:
  • Supporting Boost.IOStreams in the Client Request and Server Request/Response for message bodies. This will finally allow for sending over large amounts of data in files through the HTTP Client and Server implementations.
  • More Client-side HTTP Features, to support Cookie Management, Proxy Support.
  • Boost.Parameter-based APIs to allow for better flexibility of the client and server interfaces.
  • More HTTP Server-side convenience tools for Web Service development to make developing REST-ful web services easier, and the beginnings of a web development framework supporting templates, routes, and request handlers.
  • Initial ESTMP 1.0 support.
The project leaders are looking to get 0.9 just before the Christmas holiday season, at which time the 1.0 snapshot will also be submitted for review to the Boost C++ Library.

Commercial Support and Sponsorship

Dean Michael Berris is working on building a company around cpp-netlib to provide commercial support and custom development consulting done to make sure that the project keeps going. The cpp-netlib project will continue to be open source and the commercially supported version gets customers access to in-depth support for integrating cpp-netlib into their commercial applications. At this time, pricing on the support licensing as well as custom development rates are still being formulated.

The project will also welcome corporate sponsorship to ensure that the contributors and developers get access to different platforms and resources to ensure that cpp-netlib will continue to be of high quality and will be available in as many platforms as possible. If you or your company may be interested in donating resources and/or sponsoring the development of a specific part of cpp-netlib, you can reach out through the developers mailing list or to the maintainers of the project.

This article is cross-posted to,, and

1 comment:

Josué Andrade Gomes said...

Examples are not compiling on Windows XP with Microsoft Visual C++ 10: