Hi,
Does anyone knows where can I find the hublist server protocol ?
Best regards,
[PT]Devilishly
Hublist server Protocol ?
Moderator: Moderators
-
- Posts: 96
- Joined: 2003-04-18 05:57
- Location: Oporto, Portugal
- Contact:
-
- Posts: 506
- Joined: 2003-01-03 07:33
Yes. ;))
For more info see http://dcplusplus.sourceforge.net/wiki/ ... ing%20hubsTo 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.
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.
-
- Posts: 96
- Joined: 2003-04-18 05:57
- Location: Oporto, Portugal
- Contact: