TCPSocket is in global scope