Bitcoin Forum
May 22, 2024, 03:51:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Beast: WebSockets, HTTP  (Read 529 times)
misterbigg (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001



View Profile
May 12, 2016, 11:28:20 AM
Last edit: May 12, 2016, 11:44:17 AM by misterbigg
 #1

"Beast"

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:

http::message
class template modeling the HTTP message with customization points to satisfy even the most tough-minded reviewer.

http::read
http::write
http::async_read
http::async_write

Free functions to easily send and receive HTTP messages. Modeled to work exactly like boost::asio free functions. Role-agnostic, build clients or servers!

websocket::stream
class template wrapping any asio sync or async stream. Implements the WebSocket protocol including the initial handshake.

Examples:
* websocket echo servers
* HTTP servers for simple websites (no cgi)

"I've heard enough, show me example code!"
http://vinniefalco.github.io/beast/beast/intro/example.html

Main page, with links to GitHub repository, HTML documentation and benchmarks:
http://vinniefalco.github.io/

Feedback welcome, the author checks email and Issues on the GitHub repository. This project has been submitted to the Boost incubator.
2c0de
Full Member
***
Offline Offline

Activity: 138
Merit: 102


View Profile
May 12, 2016, 04:54:45 PM
 #2

Great stuff, the web socket support is especially good to have in this day and age.

DHjxvnHB9RirtPbvkovSotn1fY2poNffoi
LWeT4wwDVdJ9x49UcXPyS6CznRpbQFM6nx
0x96273C2FD825f0A2745d917bbbfabD6032dC1aDD
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!