/// <summary> /// 发送网络延时检测消息 /// </summary> /// <param name="uType"></param> /// <returns></returns> public bool SendTracert(uint uType = 0) { StoreArchive ar = StoreArchive.Load(m_buffer, m_buffer.Length); ar.WriteInt8(GlobalClineMsgId.CLIENT_TRACERT); //毫秒数 long clientsteamp = (long)DateTime.Now.Ticks / 10000 & 0xfffffff; // 客户端的时间戳,精确到毫秒数 ar.WriteUInt32((uint)clientsteamp); ar.WriteUInt8(uType); uSerial = (++uSerial) % 1000; ar.WriteUInt32(uSerial); ar.WriteUInt16(0); return(m_sender.Send(ar.GetData(), ar.GetLength())); }