marcandre.therrien | 21 May 2013 17:55
Picon

using libtorrent in java

I want to use libtorrent for my android application. I was wondering how I can access it in java. I've seen
other android application using libtorrent.

Thanks

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Preston Lee | 17 May 2013 18:47
Picon
Gravatar

Balanced Partial Replication Draft Spec

(Cross-posted to the bittorrent list.)

Hi everyone,

I recently submitted a pull request for a draft spec my R&D group is
working on: creating large swarms of partially-replicated peers in a manner
that can be dynamically balanced by a tracker. The primary story we're
working towards is having a trimmed down libtorrent-based client that can
be run by anonymous users to donate home storage and bandwidth for
archiving petabytes of large genomics (and other) data needed by scientists
and researchers. I've been describing it as "World Community Grid for
storage", but it's useful on a more generic and meaningful level as well.

The extension essentially adds a "volunteer" bit, as well as some
self-reported peers stats to help the tracker make better balancing
decisions. I've noticed some copy/paste errors already that I'll fix, but
here's the general gist which I've submitted as BEP-0041. I'm hoping to get
this listed as "Draft" status as soon as possible, as it'll allow us to
gain more internal momentum in finishing a reference implementation. :)

https://github.com/preston/bittorrent.org/blob/master/html/beps/bep_0041.rst

Preston
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
(Continue reading)

Anton Malyshev | 15 May 2013 22:43
Picon

Initial set of nodes for DHT

Hello!

Could you please help to find out how the initial set of nodes is formed
for DHT? In which part of the libtorrent source code I can find it?

Best Regards, Anton Malyshev.
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
Jeff Waller | 15 May 2013 22:26
Picon

Compilation on OS X; use of deprecated openssl (resend)

So this resending is due to the original message being caught up in the >100K message barrier.
I, for completeness sake, included all of the warning messages, which though indeed complete
made for a big message, so here now is the same thing but with most of the warning messages
removed.

A well known problem.  I'm attaching the warnings for completeness, but it's basically a case of using
openssl instead of what Apple wants people to use;  their Common Crypto API.

Here's a discussion in another project:  http://comments.gmane.org/gmane.comp.security.openwall.john.devel/2733

there are 2 paths basically.
	1)  Suppress the warnings compile with -Wno-deprecated-declarations
	2)  Do #if defined(__APPLE__) && defined(__MACH__)
	and define calls differently.

e.g. from that discussion list

#if defined(__APPLE__) && defined(__MACH__)
	#define COMMON_DIGEST_FOR_OPENSSL
	#include <CommonCrypto/CommonDigest.h>
	#define SHA1 CC_SHA1

	#include <CommonCrypto/CommonHMAC.h>
	#define HMAC CCHmac

#else
	#include <openssl/hmac.h>
	#include <openssl/sha.h>
	// We don't use EVP. Bite me
	#include <openssl/rc4.h>
(Continue reading)

arvid | 13 May 2013 00:27
Picon
Picon
Favicon

libtorrent 0.16.10 released

get it here:

   https://code.google.com/p/libtorrent/downloads/list?q=label:Featured

Changes since last release:

0.16.10 release

    * fix encryption level handle invalid values
    * add a number of missing functions to the python binding
    * fix typo in Jamfile for building shared libraries
    * prevent tracker exchange for magnet links before metadata is 
received
    * fix crash in make_magnet_uri when generating links longer than 
1024 characters
    * fix hanging issue when closing files on windows (completing a 
download)
    * fix piece picking edge case that could cause torrents to get stuck 
at hash failure
    * try unencrypted connections first, and fall back to encryption if 
it fails (performance improvement)
    * add missing functions to python binding (flush_cache(), 
remap_files() and orig_files())
    * improve handling of filenames that are invalid on windows
    * support 'implied_port' in DHT announce_peer
    * don't use pool allocator for disk blocks (cache may now return 
pages to the kernel)

--

-- 
Arvid Norberg
(Continue reading)

Jeff Waller | 8 May 2013 00:00
Picon

Compilation on OS X; use of deprecated openssl


A well known problem.  I'm attaching the warnings for completeness, but it's basically a case of using
openssl instead of what Apple wants people to use;  their Common Crypto API.

Here's a discussion in another project:  http://comments.gmane.org/gmane.comp.security.openwall.john.devel/2733

there are 2 paths basically.
	1)  Suppress the warnings compile with -Wno-deprecated-declarations
	2)  Do #if defined(__APPLE__) && defined(__MACH__)
	and define calls differently.

e.g. from that discussion list

#if defined(__APPLE__) && defined(__MACH__)
	#define COMMON_DIGEST_FOR_OPENSSL
	#include <CommonCrypto/CommonDigest.h>
	#define SHA1 CC_SHA1

	#include <CommonCrypto/CommonHMAC.h>
	#define HMAC CCHmac

#else
	#include <openssl/hmac.h>
	#include <openssl/sha.h>
	// We don't use EVP. Bite me
	#include <openssl/rc4.h>
	#include <openssl/aes.h>
#endif
So apparently Apple merely renamed the function calls.  Usually pre-pending a CC. Everything else
(including the link step) stays the same.
(Continue reading)

Ricky Huang | 2 May 2013 05:00
Picon

Observing without downloading

Hello all,

I am working on a research project that attempts to extract file and user trending data from bittorrent
swarms.  My hope is to modify libtorrent in such a way that it connect to swarms/peers for a given torrent and
extracts statistics without actually downloading the files to prevent any illegal activities.  The set
up is much like the "Challenges and Directions for Monitoring P2P File Sharing Networks –or– Why My
Printer Received a DMCA Takedown Notice" (http://dmca.cs.washington.edu/#papers) research done by
Michael Piatek, Tadayoshi Kohno, and Arvind Krishnamurthy

Does anyone have any suggestions on where I should start looking in the libtorrent code?

Thanks in advance!
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
John Reuning | 19 Apr 2013 04:36
Favicon

Disconnects with tcp+utp

I'm having trouble connecting to a libtorrent-based client from
non-libtorrent-based clients with utp enabled on the other clients.  The
libtorrent client issues peer connect alerts for both tcp and udp, then
disconnect alerts for both within a couple of seconds.  I've just started
digging through the verbose protocol logging but thought I'd ask the group
to see if there's something obvious I should check.  Disabling utp on the
other clients or in libtorrent makes everything happy.

Thanks,

-John
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
wujun | 9 Apr 2013 05:49
Picon

How to get the specific piece

HI, all
   I am using libtorrent to develop a p2p movie player which can play the
movie while downing the torrent simultaneously.
   Player usually needs the last piece of movie before start to play. In
order to start ASAP, I set the priority of first 4 pieces and last piece to
7, the others piece's priority are 0, but the libtorrent takes long time to
download the last piece.
   Can you give me some advice for how to get the first and last piece ASAP?

   Thank you very much!

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
Juan Carlos Arceredillo | 8 Apr 2013 09:01
Favicon

Closing session timeout.

Hi,

I´m evaluating the libtorrent library and when I was checking the client examples, I saw an unexpected
behavior. All the client test example features run correctly, but if I want close the client application
the time to close the threads and the sockets change with each execution, and It can last up to two minutes.
This issue can be reproduced more easily when the client has seeding a file.

This behaviour can be fixed with any session or torrent configuration ?

Thanks
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
David Xanatos | 4 Apr 2013 15:06
Picon
Gravatar

IPv4 support

Hello,

I saw that libtorrents dht keeps only track of ipv4 adresses in the routing
table theer ate to_v4(). conversion all around, so if a IPv6 should come in
it would just throw an exception.

Am I correct or am I missing something?
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Gmane