Updated to add namespace and finalize TcpServer class.