Example #1
0
        /// <summary>
        /// Constructor, initialises the UDP server
        /// </summary>
        public CommonUdp(string Name)
        {
            m_iState = UdpConsts.UDP_STATE_IDLE;
            m_Clients = new ConnectionList(this);
            m_Servers = new ConnectionList(this);
            m_TickTimer = new Timer(new TimerCallback(TimerTick), null, 500, 500);
            m_NextClearOldConnections = DateTime.Now;
            m_NextPingConnections = DateTime.Now;
            m_NextReliableResend = DateTime.Now;
			m_ConnTimeouts = new ConnTimeout(this);
			m_NextTimeoutCheck = DateTime.Now;
			m_Name = Name;
        }