added a socket setup utility

Socket_Setup.cpp
==============

compile with command `g++ socket_setup.cpp`