Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Debug.Print("NetPacketHandler::OnCommandHandle");

            m_ClientConnector.RegisterMsgHandler(m_PacketHandler);

            procTimer.Tick += new EventHandler(procTimer_Tick);

            procTimer.Interval = 100;//默认100毫秒

            procTimer.Start();

            m_ClientConnector.SetLoginServerAddr("127.0.0.1", 7994);
        }