mnSetDecryptUDP

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.

Parameters

int Instance: This is the instance that the command should use.

long long int Key: This is the key that the command should use.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

C++

DBP

.Net




This page is in the following sections:
(2) Networking Commands
(1) Networking
(0) DarkNet Help