Re: [libtorrent] how to clear peer list and announce without download
Brought to you by:
arvidn
|
From: Thomas K. <kr...@cs...> - 2009-10-19 16:56:48
|
> > 2) how can i receive peers (e.g. using torrent_handle::force_reannounce()) > > without automatically connecting the peers i receive? as soon as the client > > starts and announces, it starts connecting to peers and downlaods and thats > > what im trying to avoid. > > you can set up an IP-filter that covers every address. hi, it seems there is something not working properly. in the documentation ist sais: "list_seeds and list_peers are the number of seeds in our peer list and the total number of peers (including seeds) respectively. We are not necessarily connected to all the peers in our peer list. This is the number of peers we know of in total, including banned peers and peers that we have failed to connect to." but when i set a filter rule like this: filter.add_rule([current IP in list], [current IP in list]), ip_filter::blocked); s.set_ip_filter(filter); list_peers is 0 at any time. although it should save the total amount of known peers, even if blocked. also torrent_handle::get_full_peer_list() returns 0, when using ip filter. is this a bug or am i doing something wrong? next question: i tried to filter.add_rule(0.0.0.0,255.255.255.255,ip_filter::blocked). but that seems to prevent connection to the tracker. is there a way to somehow allow connection to trackers, without explicitly filter::allowed(ing) them? thanks tkrenc _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010 |