Socket streams for C++