C++/TCPSocket: Refactor the main.cpp