예제 #1
0
	~dht_server()
	{
		m_socket.cancel();
		m_socket.close();
		if (m_thread) m_thread->join();
	}
예제 #2
0
	void stop()
	{
		m_abort = true;
		m_socket.cancel();
		m_socket.close();
	}
예제 #3
0
	~udp_tracker()
	{
		m_socket.cancel();
		m_socket.close();
		if (m_thread) m_thread->join();
	}