Пример #1
0
        protected void testCompressMsg()
        {
            byte[] outBytes = null;
            //uint outSize = 0;

            ByteBuffer bu = new ByteBuffer();
            stUserRequestLoginCmd cmd = new stUserRequestLoginCmd();
            cmd.serialize(bu);
            //Compress.CompressByteZip(bu.dynBuff.buff, 0, (uint)bu.length, ref outBytes, ref outSize);

            writeFile("e:\\log.zip", outBytes);
        }
Пример #2
0
        // 步骤 3 ,发送消息
        public void sendMsg3f()
        {
            // 测试数据
            //send.game = 10;
            //send.zone = 30;
            //zhanghao01---zhanghao09
            Ctx.m_instance.m_logSys.log(Ctx.m_instance.m_langMgr.getText(LangTypeId.eLTLog0, LangItemID.eItem4));

            stUserRequestLoginCmd cmd = new stUserRequestLoginCmd();
            //cmd.pstrName = "zhanghao01";
            //cmd.pstrPassword = "******";
            cmd.pstrName = m_name;
            cmd.pstrPassword = m_passwd;
#if KOKSERVER_TEST
            cmd.pstrName = "fayatudou615";
            cmd.pstrPassword = "******";
#endif
            cmd.game = 10;
#if !KOKSERVER_TEST
            cmd.zone = Ctx.m_instance.m_cfg.m_zone;
#else
            cmd.zone = 31;
#endif
            UtilMsg.sendMsg(cmd);
        }