Class LibTorrent

java.lang.Object
com.frostwire.jlibtorrent.LibTorrent

public final class LibTorrent extends Object
  • Method Details

    • versionNum

      public static int versionNum()
      The version number as reported by libtorrent
      Returns:
      the version number
    • version

      public static String version()
      The version string as reported by libtorrent
      Returns:
      the version string
    • revision

      public static String revision()
      The git revision of libtorrent the native library is using.

      This is not the internal revision libtorrent reports, since that string is updated from time to time. This library can be using an up to date revision, this string is manually hardcoded in each version of jlibtorrent. See libtorrentConstants.LIBTORRENT_REVISION for the libtorrent string.

      Returns:
      the git revision
    • boostVersionNum

      public static int boostVersionNum()
    • boostVersion

      public static String boostVersion()
    • opensslVersionNum

      public static int opensslVersionNum()
    • opensslVersion

      public static String opensslVersion()
    • jlibtorrentVersion

      public static String jlibtorrentVersion()
    • sessionStatsMetrics

      public static List<StatsMetric> sessionStatsMetrics()
      This free function returns the list of available metrics exposed by libtorrent's statistics API. Each metric has a name and a *value index*. The value index is the index into the array in session_stats_alert where this metric's value can be found when the session stats is sampled (by calling post_session_stats()).
      Returns:
      the list of all metrics
    • findMetricIdx

      public static int findMetricIdx(String name)
      given a name of a metric, this function returns the counter index of it, or -1 if it could not be found. The counter index is the index into the values array returned by session_stats_alert.
      Parameters:
      name - the name of the metric
      Returns:
      the index of the metric
    • hasArmNeonSupport

      public static boolean hasArmNeonSupport()
      If the native library is an ARM architecture variant, returns true if the running platform has NEON support.
      Returns:
      true if the running platform has NEON support