A swig Java interface for libtorrent by the makers of FrostWire.
Develop libtorrent based apps with the joy of coding in Java.
Download the latest JAR or get the dependency via Maven:
<dependency>
<groupId>com.frostwire</groupId>
<artifactId>jlibtorrent</artifactId>
<version>1.2.x.x</version>
</dependency>
or Gradle:
compile 'com.frostwire:jlibtorrent:1.2.x.x'
Note that there are multiple version of jlibtorrent for different platforms: jlibtorrent
, jlibtorrent-windows
, jlibtorrent-linux
, jlibtorrent-macosx
and jlibtorrent-android-<arch>
. These are all different artifacts.
For examples look at https://github.com/frostwire/frostwire-jlibtorrent/tree/master/src/test/java/com/frostwire/jlibtorrent/demo
Architectures supported:
You need:
git
commands.The process is:
user1
. Download
credentials for the keys.jlibtorrent1
.user1
should have permission to put/upload to the bucket.
See for example this bucket policy:{
"Statement": [
{
"Effect": "Allow",
"Principal": {"AWS":"arn:aws:iam::<user1's ARN here>:user/user1"},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::jlibtorrent1/*"
},
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::jlibtorrent1/*"
}
]
}
S3_ACCESS_KEY, S3_SECRET_KEY, S3_BUCKET
variables using the values in the
credentials file for the user you created and the bucket name you created.jlibtorrent
folder and
checkout the stable branch:$ git clone <your fork repo url> jlibtorrent
$ cd jlibtorrent
$ git checkout master
This software is offered under the MIT License, available here.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。