Implementing a POSIX socket wrapper class