private void sendAuthLogonChallenge() { RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_CHALLENGE); packet.writeByte(8); // error code packet.writeUint16((UInt16)(30 + srp.I.Length)); // Packet Size packet.writeString("WoW", 4); // Game name packet.writeBytes(new byte[] { 3, 2, 2 }); // WoW Version packet.writeUint16(10505); // WoW build packet.writeString("68x", 4); // platform packet.writeString("niW", 4); // Operating System packet.writeString("RFrf", 4); // Country packet.writeUint32(0); packet.writeBytes(new byte[] { 127, 0, 0, 1 }); // IP packet.writePascalString(srp.I); client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client); }
private void sendAuthLogonChallenge() { RealmPacket packet = new RealmPacket(RealmOpcodes.AUTH_LOGON_CHALLENGE); packet.writeByte(8); // error code packet.writeUint16((UInt16)(30 + srp.I.Length)); // Packet Size packet.writeString("WoW", 4); // Game name packet.writeBytes(new byte[] { 3, 2, 2 }); // WoW Version packet.writeUint16(10505); // WoW build packet.writeString("68x", 4); // platform packet.writeString("niW", 4); // Operating System packet.writeString("RFrf", 4); // Country packet.writeUint32(0); packet.writeBytes(new byte[] {127, 0, 0, 1}); // IP packet.writePascalString(srp.I); client.BeginSend(packet.getFinalizedPacket(), 0, packet.Size, SocketFlags.None, new AsyncCallback(SendData), client); }