コード例 #1
0
ファイル: CommonUdp.cs プロジェクト: MonetInfor/MFCToolkit
        /// <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;
        }