Exemple #1
0
        public void Send(uint packetId, IDataSerializer packet)
        {
            Packet pck = GetPacket(packetId);

            pck.WritePacket(packet);
            Send(pck);
            DataStreamPool.Return(pck.Stream);
        }
Exemple #2
0
 public void ReturnWriter(PacketWriter writer)
 {
     DataStreamPool.Return(writer.NetworkStream);
     DataStreamPool.Return(writer.PacketStream);
 }