Sign in to follow this  
Followers 0
acmecd

DC Hubs command $Key

2 posts in this topic

Hello!

I've start created my script for searching files in Direct Connect Hubs. One of the commands to use with DC HUB connection is calculate $Key message. (http://nmdc.sourceforge.net/NMDC.html).

$Key message is sent in response to a $Lock command, sent by the remote host. It is used in Client-to-Client and Client-to-Hub handshake, but also in the Hublist registration process.

There are lot of code resources in internet, http://wiki.gusari.org/index.php?title=LockToKey() but there are no code in AutoIt.

Is there any script for calculating $Key values in Autoit, because I am not so advanced to rewrite Autoit scrip from other code languages.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Code

Chage:  $realKey &= StringFormat("/%DCN%03d%/", $key[$i])

Edited by acmecd

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0