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