public void helloAck(List <byte> strMsg) { AutoGenStructFor_helloAck msgData = new AutoGenStructFor_helloAck(); msgData.strMsg.AddRange(strMsg); PushSendData((ushort)EMsgType.helloAck, msgData); SendBytes(); }
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); }