C++11 wrapper around BSD sockets using std::iostream.