// 步骤 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); }
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); }
public static void Execute(stReturnClientIP cmd) { ClientIP = MyConvert.ToString(cmd.pstrIP); var send = new stUserRequestLoginCmd() { pstrName = MyConvert.ToBytesOfAccountString("100"), game = GameID, zone = ZoneID, wdNetType = 1, userType = 1, // ChannelType_ZQB }; send.pstrPassword = MyConvert.ToBytes("111111", send.pstrPassword.Length, ConstDefine.Encoding); Net.Instance.Send(send); }