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