Welcome to the PtokaX Wiki!
This wiki is devoted to let users share information on the great hubsoft PtokaX. However, it is not limited to PtokaX, it is destined to share and discuss information on different parts of the LUA programming language, but the site is NOT intended to be a replacement for the primary LUA Board aka the PtokaX Portal, nor the secondary LUA Board or the PtokaX resources.
If you’re not familiar with wikis then in short: they are user-contributed sites: pages can be edited by (almost) anyone. As such, there is always kind of up-to-date and (hopefully) proper content. They are better than forums, since relevant pieces of information are on the same page. Do not hesitate to share your knowledge, and we all hope you can learn and teach a lot here! — bastya_elvtars
Server to Hub Registration Server Communication
When first logging in, the server creates a socket connection. The hub registration server sends,
$Lock <lock> Pk=<pk>
<lock>is used to generate <key>
See Appendix A: Converting a Lock into a Key for how to compute the key from the lock.
<pk>is unused, but SG believes Pk stands for “private” or “public key”.
The server must then respond with,
$Key <key>|<hubname>|<hubaddress[:hubport]>|<hubdescription>|<hubusers>|<hubshare>
<key>is computed as above.<hubname>is the hubs's username.<hubaddress[:hubport]>is the hubs's address. Optional :hubport if hub port is not 411.<hubdescription>is the hubs's description.<hubusers>is the total number of users in the hub.<hubshare>is the total amount of data available in the hub (bytes).
Hub Registration Example:
Server <-> Hub Registration Server Communication in DC. 04-29-2003. By Sid ---------------------------------------------------------- Hublist Registration ---------------------- R = hub registration server H = hub H>R: Connection R>H: $Lock <lock> Pk=<pk>| H>R: $Key <key>|<hubname>|<hubaddress[:hubport]>|<hubdescription>|<hubusers>|<hubshare>| R>H: Connection Closed
You are here: About the Wiki » misc » dcprotocol » Server to Hub Registration Server Communication