C++/TCPSocket: Refactor, add macro DELETE and CLOSE