Network streams for C++