Maybe solution for same nick in several hubs.

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
xayide
Posts: 21
Joined: 2003-06-12 09:38

Maybe solution for same nick in several hubs.

Post by xayide » 2003-07-28 16:45

This is mostly for Sarf and maybe FarCry if he wants to update his CTD.

I was thinking that if one adds a vectorlist/stacklist to connectionmanager which all instances of Client has access to and then everytime u send out a new connectionattempt to a user to do the detection, u also add the nick+hub to that stacklist in connectionmanager. U will also have to add a new function to getUser which also checks in that list before it returns the first online user it founds which is default if there is no hint.

Also to avoid sending out a ConnectToMe to two users with the same nick in two hubs u have to add to the Detectionqueuer that it also checks the list for any entry with the same nick. If it finds one, dont add it again. Now u probably wonder what happens if that user in the list never answers will that stall all other attempts because that nick cant be added for users in other hubs? No, I was thinking that one could add a little stacklist clear to the same place where it clears the userconnections which happens every 3 mins.

So what do u think about this? Can u see anything in it which would make it fail?
You can always reach me nowhere!

Locked