Begining translation of SocketUPD from C to C++