Linux/Unix network programming, C++ program