socket C++ (fixed) example from http://www.pcs.cnu.edu/~dgame/sockets/socketsC++/sockets.html