示例#1
0
        public override Packet CreatePacket()
        {
            _initPacketPool();
            TimeSynPacket packet = _packetPool.AcquireContent();

            if (packet.Buffer != null)
            {
                System.Diagnostics.Debug.Assert(packet.Buffer.Uses == 1);
                packet.Buffer.DecrementUsage();
            }
            packet.Buffer = BufferManager.Tiny.CheckOut();
            return(packet);
            //return Packet.GetPacket<HeatbeatPacket>(HeatbeatPacket._PacketID);
        }