C++ wrapper for POSIX sockets