Its got these features:
* Comes with a WebSocket echo port handler (sync and async)
* Comes with an HTTP port handler (sync and async)
* Configurable PortHandler concept for user-defined behaviors
Create your own "ports" by writing a class to take ownership of sockets from incoming connections, plug it in to the server framework, and then publish it as open source so other people can use your ports!
The HTTP ports that come with this example are extensible, defining a Service concept which handles HTTP requests. A Service List aggregates Service objects, and the implementation gives each one a chance to handle the request in turn (kind of like a router, but more powerful!) The example comes with two services:
* file_service serves files from a path on your system, like a web server
* ws_upgrade_service lets you accept WebSocket connections from the same port as your web server and hands them off to the websocket port handler!
As with PortHandler, you can write your own Service types and plug them into this extensible framework, then share them with other people. For example you could implement a simple Troll-box style WebSocket chat Service which plugs right in to the framework and release that as your own open source library!
This is all built on top of Beast to show off the power of the library. People have asked for higher level functionality. You spoke - we listened! Now you can create a richly featured HTTP/WebSocket server in just a matter of seconds by cloning the server-framework example!
Beast: https://github.com/vinniefalco/Beast
Documentation: http://vinniefalco.github.io/beast/index.html