C++/TCPSocket: Refactor, use libray funtion getopt to parse argv