This command sets DarkNet to decrypt
received UDP packets based on a key previously created by mnCreateKey256,
mnCreateKey192 or mnCreateKey128.
This only affects UDP modes: UM_PER_CLIENT,
and UM_PER_CLIENT_PER_OPERATION. This must be used before mnStartServer
or mnConnect.
This command is necessary because in
UDP mode UM_PER_CLIENT and UM_PER_CLIENT_PER_OPERATION DarkNet needs
to read part of the packet. It cannot do this if the packet is encrypted.
When decrypting the UDP packet, mnDecrypt
is used with the specified key.
int Instance: This is the instance that the command should use.
long long int Key: This is the key that the command should use.
0 if no error occurred.
-1 if an error occurred.
C++
DBP
.Net