示例#1
0
文件: RdmNet.cs 项目: Farrser/ACN
        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;
            }
        }
示例#2
0
 private void SlpDiscovery_FormClosing(object sender, FormClosingEventArgs e)
 {
     slpUser.Dispose();
 }