예제 #1
0
        public virtual Boolean Start()
        {
            try
            {
                if (!m_Active)
                {
                    NativeFeed_Worker.RunWorkerAsync();
                    m_Active = true;
                }
            }
            catch { }

            return(m_Active);
        }
예제 #2
0
        public virtual Boolean Stop()
        {
            try
            {
                if (m_Active)
                {
                    NativeFeed_Worker.CancelAsync();
                    m_Active = false;
                }
            }
            catch { }

            return(!m_Active);
        }
예제 #3
0
파일: ScpProxy.cs 프로젝트: zw5/WiinUPro
        public virtual Boolean Start()
        {
            try
            {
                if (!m_Active)
                {
                    m_Client = new UdpClient(m_ClientEp);
                    m_Client.Client.ReceiveTimeout = 500;

                    NativeFeed_Worker.RunWorkerAsync();
                    m_Active = true;
                }
            }
            catch { }

            return(m_Active);
        }