Choose your implementation method:
This function is part of the AntiCheatClient Interface.
Optional NetProtect feature for game message encryption.
Encrypts an arbitrary message that will be sent to the game server and decrypted on the other side.
Mode: EOS_ACCM_ClientServer.
Options.Data and OutBuffer may refer to the same buffer to encrypt in place.
Return Value
EOS_Success - If the message was protected successfully
EOS_InvalidParameters - If input data was invalid
EOS_AntiCheat_InvalidMode - If the current mode does not support this function
Parameters
EOS_AntiCheatClient_ProtectMessage
Parameter Type And Name
|
Usage Information
|
EOS_HAntiCheatClient Handle
|
|
const EOS_AntiCheatClient_ProtectMessageOptions* Options
|
Structure containing input data.
|
void* OutBuffer
|
On success, buffer where encrypted message data will be written.
|
uint32_t* OutBytesWritten
|
On success, the number of bytes that were written to OutBuffer.
|
This function is part of the AntiCheatClient Interface.
Optional NetProtect feature for game message encryption.
Encrypts an arbitrary message that will be sent to the game server and decrypted on the other side.
Mode: {AntiCheatClientMode.ClientServer}.
Options.Data and OutBuffer may refer to the same buffer to encrypt in place.
{Result.InvalidParameters} - If input data was invalid
{Result.AntiCheatInvalidMode} - If the current mode does not support this function
Return Value
{Result.Success} - If the message was protected successfully
Parameters
AntiCheatClient.AntiCheatClientInterface.ProtectMessage
Parameter Type And Name
|
Usage Information
|
ProtectMessageOptions options
|
Structure containing input data.
|
byte[] outBuffer
|
On success, buffer where encrypted message data will be written.
|
Was this document useful?
Thank you for the response!
You’ve marked this document as useful:
yes
You’ve marked this document as not useful:
no