Пример #1
0
        private void button_SendPacket_Click(object sender, EventArgs e)
        {
            string sendPacketText = textBox_SendPacket.Text.Trim();

            byte[] packetBytes = HexTool.ToBytes(sendPacketText);

            var p = new PacketWriter();

            p.WriteByte(packetBytes[0]);
            p.WriteByte(packetBytes[1]);
            p.WriteBytes(packetBytes);

            Client.session.SendPacket(p);
        }
Пример #2
0
 public void WriteHexString(string value)
 {
     WriteBytes(HexTool.ToBytes(value, true));
 }