public void helloReq(List <byte> strMsg) { AutoGenStructFor_helloReq msgData = new AutoGenStructFor_helloReq(); msgData.strMsg.AddRange(strMsg); PushSendData((ushort)EMsgType.helloReq, msgData); SendBytes(); }
protected bool helloReqStub(byte[] buff, uint offset, uint buffLen) { AutoGenStructFor_helloReq msgData = new AutoGenStructFor_helloReq(); uint readLen = msgData.Unserialize(buff, offset, buffLen); if (readLen <= 0) { msgData.Clear(); return(false); } helloReq(this, msgData.strMsg); msgData.Clear(); return(true); }