Example of building async active object
Here's a more complex example of building communicating objects on the top of boost::asio (Boost C++ Libraries).
https://sourceforge.net/projects/asio-samples/ (the "nmea_client" and "echo_server" projects are just ready). The main concept of the described method is the creation of objects with asio-like communication interface:
template <typename Handler>
void async_do_something(operation_parameters, Handler handler) {...}
P.S.
There isn't any ready file packets at asio-samples yet - use SVN repository to download project's trunk. For testing purposes I use Virtual Serial Port Emulator (test configuration at data/nmea_client/test/com_emul_config.vspe) with (not valid but near) nmea log located at data/nmea_client/test/test_data.nmea.
Topic revision: r10 - 26 Aug 2009 - 08:49:37 -
MaratAbrarov?