Пример #1
0
        // Envoi un packet
        static public void SendTCP(PacketOut packet)
        {
            //Fix the packet size
            packet.WritePacketLength();

            //Get the packet buffer
            byte[] buf = packet.GetBuffer(); //packet.WritePacketLength sets the Capacity

            //Send the buffer
            SendTCP(buf);
        }
Пример #2
0
        // Envoi un packet
        public static void SendTCP(PacketOut packet)
        {
            _logger.Info($"Sending TCP Packet {packet.Opcode}");
            //Fix the packet size
            packet.WritePacketLength();

            //Get the packet buffer
            byte[] buf = packet.GetBuffer(); //packet.WritePacketLength sets the Capacity

            //Send the buffer
            SendTCP(buf);
        }
Пример #3
0
        // Envoi un packet
        public static void SendTCP(PacketOut packet)
        {
            //Fix the packet size
            packet.WritePacketLength();

            //Get the packet buffer
            byte[] buf = packet.GetBuffer(); //packet.WritePacketLength sets the Capacity

            //Send the buffer
            SendTCP(buf);
        }