示例#1
0
        public void Stop()
        {
            if (dnsSD != null)
            {
                dnsSD.Dispose();
                dnsSD = null;
            }

            if (slpUser != null)
            {
                slpUser.Close();
                slpUser = null;
            }

            if (acnSocket != null)
            {
                acnSocket.Close();
                acnSocket = null;
            }

            if (reliableSocket != null)
            {
                reliableSocket.Dispose();
                reliableSocket = null;
            }
        }
示例#2
0
        public void Stop()
        {
            if (reliableSocket != null)
            {
                reliableSocket.Dispose();
            }

            if (slpUser != null)
            {
                slpUser.Close();
            }

            if (acnSocket != null)
            {
                acnSocket.Close();
            }
        }