Пример #1
0
        public static void Resume()
        {
            m_Paused = false;

            for (int i = 0; i < m_Instances.Count; ++i)
            {
                NetState ns = m_Instances[i];

                if (ns.m_Socket == null)
                {
                    continue;
                }

                lock (ns.m_AsyncLock) {
                    ns.m_AsyncState &= ~AsyncState.Paused;

                    if ((ns.m_AsyncState & AsyncState.Pending) == 0)
                    {
                        ns.Receive_Start();
                    }
                }
            }
        }