コード例 #1
0
ファイル: Client.cs プロジェクト: wardev1/WarEmu-1
        // 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
ファイル: Client.cs プロジェクト: cooler-SAI/ProjectWAR
        // 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
ファイル: Client.cs プロジェクト: JeFawk/WarEmu
        // 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);
        }