If you're going to use sockets then, personally, I'd recommend just using C sockets. Period.
If you insist on using C++ "classes", then I'd recommend using a class library that's already built for you.
Specifically, I'd recommend taking a look at Boost:
http://www.boost.org/
'Hope that helps