示例#1
0
        public void helloAck(List <byte> strMsg)
        {
            AutoGenStructFor_helloAck msgData = new AutoGenStructFor_helloAck();

            msgData.strMsg.AddRange(strMsg);
            PushSendData((ushort)EMsgType.helloAck, msgData);
            SendBytes();
        }
示例#2
0
        protected bool helloAckStub(byte[] buff, uint offset, uint buffLen)
        {
            AutoGenStructFor_helloAck msgData = new AutoGenStructFor_helloAck();
            uint readLen = msgData.Unserialize(buff, offset, buffLen);

            if (readLen <= 0)
            {
                msgData.Clear(); return(false);
            }
            helloAck(this, msgData.strMsg);
            msgData.Clear();
            return(true);
        }