Hi,
Does anyone knows where can I find the hublist server protocol ?
Best regards,
[PT]Devilishly
Hublist server Protocol ?
Moderator: Moderators
-
[PT]Devilishly
- Posts: 96
- Joined: 2003-04-18 10:57
- Location: Oporto, Portugal
-
Herodes
- Posts: 26
- Joined: 2004-04-09 00:45
- Location: Rethymno, Crete, Greece
-
ivulfusbar
- Posts: 506
- Joined: 2003-01-03 12:33
Yes. ;))
For more info see http://dcplusplus.sourceforge.net/wiki/index.php/Registering%20hubs
To register a hub, connect to any hublist server. They are traditionally run on port 2501.
The server sends a $Lock command, which works the same way it does in client-client and client-hub communication. The difference is how the initial key is calculated. For hublist connections, its calculated from the local/source port choosen by the OS (or by you). (this is in contrast to the destionation port, which will probably be 2501) (add the algo to calculate it. I think its something like byte e = highbyte(port) + lowbyte(port)). The only hublist server that cares about the key is vandel405.
After the hub has sent its $Key, it sends info on itself:
Hublist: $Lock ... Pk=...|
Hub: $Key ...|Hubname|Ip-address(:port)|Description|Users|Shared bytes|
The port defaults to 411 if not given.
For more info see http://dcplusplus.sourceforge.net/wiki/index.php/Registering%20hubs
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.
-
[PT]Devilishly
- Posts: 96
- Joined: 2003-04-18 10:57
- Location: Oporto, Portugal
Who is online
Users browsing this forum: Google [Bot] and 0 guests