A cross-platform C++ library for peer-to-peer communications programming