Gnutella Forums  

Go Back   Gnutella Forums > Off Topic Discussion > Chat - Open Topics - The Lounge > Welcome to the Gnutella Forums and introduce yourself
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Welcome to the Gnutella Forums and introduce yourself A place to introduce yourself to the forums (don't tell your identity) and say hello


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8 (permalink)  
Old January 15th, 2010
Devotee
 
Join Date: June 7th, 2008
Posts: 26
mrogers is flying high
Default

Hi Aklilom,

Sounds like an interesting research project. I guess there are two ways you could approach it:

(1) Reserve a certain number of connection slots for geographically close peers. If no geographically close peers are available, allow other peers to occupy those slots. This approach is similar to the way locale preferencing works, so try searching the code for references to ConnectionSettings.USE_LOCALE_PREF to get an idea of where and how locale preferencing is implemented.

(2) When choosing peers to connect to, try geographically close peers first. If you're interested in this approach, look at HostCatcher.getAnEndpointInternal(), which selects the next cached peer that LimeWire will try to connect to. In particular, look at the PriorityComparator class in ExtendedEndpoint, which determines the order in which peers are returned from the HostCatcher's ENDPOINT_QUEUE. You'll need to come up with some way of combining the geographic distance with the other selection criteria (number of successful/failed connection attempts and locale).

Hope this helps,
Michael
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.