public void Stop() { if (reliableSocket != null) { reliableSocket.Dispose(); reliableSocket = null; } if (slpUser != null) { slpUser.Dispose(); slpUser = null; } #if mDNS_Discovery if (dnsSD != null) { dnsSD.Dispose(); dnsSD = null; } #endif if (rdmNetSocket != null) { rdmNetSocket.Close(); rdmNetSocket = null; } }
private void SlpDiscovery_FormClosing(object sender, FormClosingEventArgs e) { slpUser.Dispose(); }