Exemple #1
0
        protected DateTime m_send_heartbeat_time;       // Time of send heart beat

        // Init bean, support server address
        public bool Init(string strSrvIP, int nSrvPort)
        {
            CSLogger.Init();
            m_server_ip   = strSrvIP;
            m_server_port = nSrvPort;
            return(true);
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            // Init logger
            CSLogger.Init();
            // Verify protocol.
            VerifyProtocolParse.RunTest();
            // Default assign server
            string strServerIP = "127.0.0.1";
            int    nServerPort = 7001;
            // Create a player and run it
            CSGatePlayer hPlayer = new CSGatePlayer();

            hPlayer.RunGatePlayer(strServerIP, nServerPort);
        }