A sample C++ socket in Linux OS