Hublist server Protocol ?

Know of something that might be useful to the DC community? Post it here! (Still, no advertising)

Moderator: Moderators

[PT]Devilishly
Posts: 96
Joined: 2003-04-18 10:57
Location: Oporto, Portugal

Hublist server Protocol ?

Post by [PT]Devilishly » 2004-10-06 11:29

Hi,

Does anyone knows where can I find the hublist server protocol ?

Best regards,
[PT]Devilishly

Herodes
Posts: 26
Joined: 2004-04-09 00:45
Location: Rethymno, Crete, Greece

Post by Herodes » 2004-10-06 12:06


ivulfusbar
Posts: 506
Joined: 2003-01-03 12:33

Post by ivulfusbar » 2004-10-06 12:08

Yes. ;))

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

Post by [PT]Devilishly » 2004-10-06 17:19

Thanks for your Help!!! Image

Best regards,
[PT]Devilishly

Who is online

Users browsing this forum: Google [Bot] and 0 guests