Michael Mckeown | 29 May 20:04 2016

torrent_file

When adding with a magnet/hash I'm looking to get the details from the
torrent_file on the state_changed_alert but:

torrent_handle handle = state_changed_alert->handle;
torrent_status status = handle.status ( );
boost::weak_ptr<const torrent_info> weak_pointer = status.torrent_file;

gives all blank/zero in the torrent_info or:

torrent_handle handle = state_changed_alert->handle;
boost::shared_ptr<const torrent_info> shared_pointer =
handle.torrent_file ( );

does the same, how is it you access the metadata from magnet/hash torrents?

has_metadata returns true on both occasions.

Thanks.

Also, the new read_resume_data() function, where exactly is it and how
is it used?

Thanks again.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
(Continue reading)

Parthib Dutta | 27 May 07:21 2016
Picon

DHT implementation problem with traversal algorithm

Hi everyone, 
My name is Parthib and I'm currently doing a project where I have to implement the Bittorrent DHT.  I have
gone through the specs and understood almost all of it. But the traversal algorithm is the one I'm finding
very challenging to understand. According to my understanding suppose I'm downloading a torrent and I
have a few nodes in my routing table. Say 3.  So i send find_node query to the nodes in my routing table
including the target key as my own node id. I will recursively call this to find nodes closest to my node id. 
     After that I send get_peers query to the nodes that are closest to the info hash. If i get a list of peers
i will send announce to the peers else if i receive a list compact node info list i will recursively call
get_peers on them. 
   Is my reasoning correct? The part I'm not understanding is why we have to use find_node when get_peers
request already returns us the node info of closest nodes to the info hash? I hope someone will help me
clarify this doubt. 

Sent from Yahoo Mail on Android
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Calum Lind | 26 May 22:44 2016
Picon
Gravatar

flag_update_subscribe

Hi Arvid,

I saw you mention flag_update_subscribe for add_torrent_params and I was
curious of it's intended usage? I assume it can't be changed after the
torrent is added?

Thanks,

Calum
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Michael Mckeown | 26 May 15:09 2016

state_update_alert

Hi again, with state_update_alert I get 'state_update_alert state 
updates for 0 torrents' with the vector of torrent_status having a count 
of zero despite torrents running.

Pretty sure I'm doing it right:

session->post_torrent_updates ( );
session->pop_alerts ( &alerts );

for ( libtorrent::alert const* a : alerts ) {
  if ( auto state = libtorrent::alert_cast< 
libtorrent::state_update_alert >( a ) )
  {
   std::cout << "state_update_alert " << a->message ( ) << "\n";
   for ( std::vector<torrent_status>::const_iterator it = 
state->status.begin ( ) , end ( state->status.end ( ) ); it != end; ++it )
   {
   }
  }
}

built with master from last night with:

toolset=msvc-14.0 boost-link=static runtime-link=static 
deprecated-functions=off encryption=on link=static dht=on logging=off 
i2p=on variant=release

Thanks.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
(Continue reading)

Ruslan Fedoseenko | 25 May 23:01 2016
Picon

Detect file priorities change .

Is it possible to detect on plugin level when file priorities are changed?
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Jeong Woo Seo | 25 May 18:27 2016
Picon

libtorrent with python binding hangs sometimes

 Hi all.

 I built centralized patch system with libtorrent and python. All clients are linux and have different
kernel version.
Clients with above kernel 3.19 sometimes hang when download torrents. 

When i tried to kill python process, it turned to zombie. OS is Ubuntu 14.04 LTS and filesystem is NTFS-3G.

I attached /proc/pid/stack log.

 root <at> bong-M:~# cat /proc/2963/stack
[&lt;ffffffff812e03c9&gt;] jbd2_log_wait_commit+0xa9/0x130
[&lt;ffffffff812e2e3c&gt;] jbd2_complete_transaction+0x5c/0xa0
[&lt;ffffffff81286608&gt;] ext4_sync_file+0x188/0x2f0
[&lt;ffffffff81234d7b&gt;] vfs_fsync_range+0x4b/0xb0
[&lt;ffffffff81234e3d&gt;] do_fsync+0x3d/0x70
[&lt;ffffffff812350d0&gt;] SyS_fsync+0x10/0x20
[&lt;ffffffff817ec7b6&gt;] entry_SYSCALL_64_fastpath+0x16/0x75
[&lt;ffffffffffffffff&gt;] 0xffffffffffffffff

When clients hang, all they stuck at specific torrent - but it's random torrent -. and number of opened files
from lsof command are same.
Any idea?
Thank you

 엑세스 주식회사 XS INC. ⊂ 팀 장  서 정 우  / 徐 政 佑/ Seo Jeong Woo
서울시 구로구 구로3동 197-5 삼성IT밸리 1004호
Mobile 010-3896-9002 / Office 02-2088-3243
 FAX  02-2039-3076 / E-mail seo <at> xsinc.co.kr 
------------------------------------------------------------------------------
(Continue reading)

Ricky Huang | 19 May 19:41 2016
Picon

What is BTWebClient/2210(25031)?

Hello all,

I know this is not libtorrent-specific, please delete if deemed inappropriate.

While querying the peer list, I noticed a great number of "BTWebClient/2210(25031)” peers.  I am
wondering what that application that belongs to?  A quick Google brings up a bunch of malware reports, some
uTorrents hits, and some PopcornTime hits.

Does anyone know this for sure?

Thanks in advance.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Ben K | 11 May 16:44 2016
Picon

Disable_Hash_checks

Hello everyone, My name is Ben and im an engeneering studen in BGU.

Im trying to change pieces and download them again as part of the same
torrent but it fails because of hash checks. It downloads all the file
beside the pieces that were changed. I tried to Add at the begining of the
python simple_client (in both computers) :
client :
[image: pasted2]
distibuter:
[image: pasted3]
but it doesnt work, still the pieces that were changed refuse to be
downloaded. Is the usage of the disable_hash_checks is correct? in case
not, how do i need to use it correctly ?

thank you, Ben.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
(Continue reading)

s95227@libero.it | 14 May 14:32 2016
Picon

R: Re: R: Re: Possible DHT extension?

I was asking if there was a way to do things without breaking the design. Right 
now I'm using the mutable item store for RSS feeds and its working properly. 
Each user has its own private/public key and in no way I'm willing to break the 
desing.

Anyway do you beleive that this feature could be implemented in the future?

Thanks

>----Messaggio originale----
>Da: Arvid Norberg <arvid.norberg <at> gmail.com>
>Data: 14/05/2016 2.07
>A: "General discussion about libtorrent"<libtorrent-discuss <at> lists.sourceforge.
net>
>Ogg: Re: [libtorrent] R: Re: Possible DHT extension?
>
>On Fri, May 13, 2016 at 6:50 PM, Jakob Petsovits <j <at> petsovits.com> wrote:
>
>> On Fri, May 13, 2016, at 05:04 PM, the8472.lt-discuss <at> infinite-source.de
>> wrote:
>> > [...]
>> > That's pretty much what I already described in my initial reply.
>> > Including the pubkey ensures single-ownership.
>> >
>> > Strings cannot be owned by a single person, because collisions would
>> > happen. Who would own the word "Video" for example?
>>
>> [...]
>>
>> Right now it's already possible to resolve an arbitrary hash to a set of
(Continue reading)

s95227@libero.it | 13 May 22:54 2016
Picon

R: Re: Possible DHT extension?

Please, correct me if I'm wrong.

In a mutable item I can use a string as salt for the item, but I cannot have a 
list of entry's that maps that string to.
Using different salt I can have different values stored for the same key but 
these values are unique. Can be updated with CAS, but, cannot exist a list of 
values that can be identified with the same salt.

this code
[code]
map<string, set<entry>> m_association_string_to_set
[/code]
can never belong to DHT because of single-ownership?

Or in a more completed way
[code]
std::map<node_id,set<node_id>> m_keyword_to_infohash_map
[/code]

where each node_id in the set is the hash of the put_dht_item of entry std::
list(entry).

Thanks

>----Messaggio originale----
>Da: the8472.lt-discuss <at> infinite-source.de
>Data: 13/05/2016 22.34
>A: <libtorrent-discuss <at> lists.sourceforge.net>
>Ogg: Re: [libtorrent] Possible DHT extension?
>
(Continue reading)

s95227@libero.it | 13 May 21:47 2016
Picon

Possible DHT extension?

Hi Arvid, can I have your opinion about some questions about dht_put/get functions?

Right now we are able to put an item (let's say immutable one) on the DHT and the hash of the entry is returned to
us for later retrieval. So far, so good. But if I place an item on the DHT only I am able to retrieve it later.
I'm searching for a way to put the item on the DHT and later somebody else retrieves it, without knowing the
hash of the whole entry, but just knowing the "identifier" string as below.
Let me explain it better.

I do have an entry wich is a list made of three string (as an example)

Entry{ "identifier_string" , "string2" , "string3"}

Right now it is not possibile to return from the put operation the SHA1 of the identifier string for later
retrieval, I get the SHA1 of the flat, bencoded entry.
If that was able, a second person later, can retrive the whole entry just by querying for the SHa1 of the
identifier string.

p.s.: if you rename the "identifier_string", "keyword" there you got a why to do some keyword searching on
the DHT.

Thanks in advance,
Erjon

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
(Continue reading)


Gmane