protected void ReplacePacket(ServerPacketSafe newPacket) { unsafe { fixed(byte *pNewData = newPacket.Data) { Server.PacketEngine.ReplaceServerPacketData(m_ppData, m_pLength, pNewData, newPacket.Dynamic ? (uint)((newPacket.Data[1] << 8) + newPacket.Data[2]) : (uint)newPacket.Length); } } }
public int SendPacketToSocket(ServerPacketSafe packet) { return(Socket.SendPacket(packet.Data, (uint)packet.Length)); }