Reactive systems are found everywhere. The temptation to implement them with legions of waiting threads can be strong; however, the result is nearly always disappointing at best.
The Boost.Asio library provides a framework to handle asynchronous resources with specific classes directed toward networking, serial port I/O, timers and more. In this session we will build a server that routes data streams to and from various serial I/O hardware components to TCP connected Flash displays. The Qi parsers and Karma generators developed in an earlier session will be employed to create ASTs that will be shuffled to their appropriate destinations.
This lecture/tutorial will utilize libraries including Asio, Spirit, Fusion, Phoenix, Smart_ptr, Thread, Function and Bind to pull together a server capable of streaming data to and taking requests from a Flash XMLSocket. Attendees will leave with an understanding of the Asio model and various implementation patterns to create their own Asio based servers.