Hublist server Protocol ?

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

Moderator: Moderators

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

Hublist server Protocol ?

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

Hi,

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

Best regards,
[PT]Devilishly

Herodes
Posts: 26
Joined: 2004-04-08 19:45
Location: Rethymno, Crete, Greece

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

[url=dchub://greekcyprus.no-ip.org].::+LiVe-¦-OnCE-¦-WaiT-¦-foR-¦-eVeR+::..[/url]

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

Post by ivulfusbar » 2004-10-06 07: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/ ... ing%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 05:57
Location: Oporto, Portugal
Contact:

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

Thanks for your Help!!! Image

Best regards,
[PT]Devilishly

Locked