EOS_AntiCheatServer_ProtectMessage

EOS API reference page for EOS_AntiCheatServer_ProtectMessage

実装方法を選んでください。

C

C#

This function is part of the AntiCheatServer Interface.

Remarks

Optional NetProtect feature for game message encryption. Encrypts an arbitrary message that will be sent to a game client and decrypted on the other side. 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_InvalidUser - If the specified ClientHandle was invalid or not currently registered. See RegisterClient.

Parameters

EOS_AntiCheatServer_ProtectMessage

Parameter Type And Name

Usage Information

EOS_HAntiCheatServer Handle

const EOS_AntiCheatServer_ProtectMessageOptions* Options

Structure containing input data.

void* OutBuffer

On success, buffer where encrypted message data will be written.

uint32_t* OutBufferLengthBytes

Number of bytes that were written to OutBuffer.

Related API Members

This function is part of the AntiCheatServer Interface.

Remarks

Optional NetProtect feature for game message encryption. Encrypts an arbitrary message that will be sent to a game client and decrypted on the other side. 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_InvalidUser - If the specified ClientHandle was invalid or not currently registered. See RegisterClient.

Parameters

AntiCheatServer.AntiCheatServerInterface.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.

Related API Members