A C++ framework for building communications applications