dplay_encrypt
Set a code number for encryption and compression of data packets.
Encryption prevents packets from being analyzed with a network analyzer, compression reduces the network traffic.
When encryption is activated,
the server drops all unencrypted clients and ignores all data packets that are encrypted with a different code number
or come from a client with a different script.
Range:
0..unlimited (default:
0)
Type:
var
Remarks:
- This variable must have the same value on clients and server. It must be set at the very beginning of the main function and can not be changed afterwards. For security reasons, it can be calculated with any algorithm as long as the result is the same on client and server.
-
The average bandwidth gain by compression can be determined through the dplay_compression variable. On huge networks,
compression can reduce the network traffic by up to 35%.
-
For preventing client hacking or cheating by injection of malicious data packets, always use encryption for MMOGs.
- User packets sent with the SendPacket() / ReceivePacket() functions are not encrypted or compressed.
Edition:
A7.30
P
Example:
function main() {
dplay_encrypt = 4711.007; // encrypt and decrypt all packets using the code number 4711.007
...
See also:
dplay_smooth, dplay_unreliable, dplay_compression
► latest
version online