What has Vinnie been up to? I’ve been toiling away at Ripple and one of the latest things to appear is Beast, a new cross platform open source library that uses boost and offers HTTP and WebSocket:
This is a new open source library that implements the HTTP and WebSocket protocols using Boost.Asio and a few other Boost tidbits. Here’s a quick synopsis of what’s in it:
class template modeling the HTTP message with customization points to satisfy even the most tough-minded reviewer.
Free functions to easily send and receive HTTP messages. Modeled to work exactly like boost::asio free functions. Role-agnostic, build clients or servers!
class template wrapping any asio sync or async stream. Implements the WebSocket protocol including the initial handshake.
- websocket echo servers
- HTTP servers for simple websites (no cgi)
"I’ve heard enough, show me example code!"
Main page, with links to GitHub repository, HTML documentation and benchmarks:
Feedback welcome, the author checks email and Issues on the GitHub repository. This project has been submitted to the Boost incubator.