DeathfireD / AllianceP2P

Alliance takes the best from BitTorrent, Direct Connect and Waste and creates a decentralized and secure p2p network. It is a private and secure environment to share files and communicate with people you know. Alliance works on Windows, Linux and Mac.
12 stars 8 forks source link

Friend Connection Priority Rework #6

Open DeathfireD opened 11 years ago

DeathfireD commented 11 years ago

Project Member Reported by DeathfireD, Feb 7, 2010 It would be nice if Alliance redid how it connects to friends.

1) When shutting Alliance down it should mark friends that where on before you closed the client either in xml or in H2. These should be the first people Alliance attempts to connect to when you start the client back up again.

2) It should also keep track of how often friends are online and save this number in xml next to the username or in H2. This should be the second set of people Alliance attempts to connect too (excluding the people that Alliance already has online thanks to #1). It should attempt to connect to them in order of highest to lowest. (ie. Jim 10, Tom 8, Lisa 4, anon 1, name 1...etc).

Jul 17, 2010 Delete comment Project Member #1 DeathfireD for #2, to determine how often someone is on (order number) we may need to base this on how many days they've actually been on and not "how many times they've connected to you". The reason we should do it by days is because a person could connect and disconnect many times in one day causing their order number to be increased dramatically. They may not come on for a week but becuse the order number was saved based on how often they connected to you, they'd still have a high order number over someone that's been connected to you for 2 straight days without disconnecting.

So doing it by day would keep the numbers low and realistic. If someone is on every day for a week then their order number would obviously be 7. If they come on for another week then it's 14. Same can be said for the people that are connected to you non-stop for days. Jul 14, 2011 Delete comment Project Member #2 DeathfireD We could also do this instead of #2. After attempting to connect to the people we where last successfully connected to, Alliance could then attempt to connect to people based on the last time they where seen online and working it's way down the list.

Ex. Connect to Tom since he was on yesterday then connect to Joe, Sam, and Doug becuse they where on the day before and then connect to Cat and Dog becuse they where on 4 days ago...etc