Class LibTorrent
java.lang.Object
com.frostwire.jlibtorrent.LibTorrent
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic intstatic intfindMetricIdx(String name) given a name of a metric, this function returns the counter index of it, or -1 if it could not be found.static booleanIf the native library is an ARM architecture variant, returns true if the running platform has NEON support.static Stringstatic Stringstatic intstatic Stringrevision()The git revision of libtorrent the native library is using.static List<StatsMetric> This free function returns the list of available metrics exposed by libtorrent's statistics API.static Stringversion()The version string as reported by libtorrentstatic intThe version number as reported by libtorrent
-
Method Details
-
versionNum
public static int versionNum()The version number as reported by libtorrent- Returns:
- the version number
-
version
The version string as reported by libtorrent- Returns:
- the version 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_REVISIONfor the libtorrent string.- Returns:
- the git revision
-
boostVersionNum
public static int boostVersionNum() -
boostVersion
-
opensslVersionNum
public static int opensslVersionNum() -
opensslVersion
-
jlibtorrentVersion
-
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
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
-