This function is part of the AntiCheatServer Interface.
Remarks
Add a callback issued when a new message must be dispatched to a connected client. The bound function will only be called between a successful call to EOS_AntiCheatServer_BeginSession and the matching EOS_AntiCheatServer_EndSession call.
Return Value
A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise
Parameters
EOS_AntiCheatServer_AddNotifyMessageToClient
Parameter Type And Name | Usage Information |
---|---|
EOS_HAntiCheatServer Handle | |
const EOS_AntiCheatServer_AddNotifyMessageToClientOptions* Options | Structure containing input data |
void* ClientData | This value is returned to the caller when NotificationFn is invoked |
EOS_AntiCheatServer_OnMessageToClientCallback NotificationFn | The callback to be fired |
Callback Function Information
Because this function is asynchronous, it employs a callback of type EOS_AntiCheatServer_OnMessageToClientCallback to report the results of its operation.
Callback Remarks
Callback issued when a new message must be dispatched to a connected client. Messages contain opaque binary data of up to 256 bytes and must be transmitted to the correct client using the game's own networking layer, then delivered to the client anti-cheat instance using the EOS_AntiCheatClient_ReceiveMessageFromServer function. This callback is always issued from within EOS_Platform_Tick on its calling thread.
Callback Parameters
EOS_AntiCheatServer_OnMessageToClientCallback
Parameter Type And Name | Usage Information |
---|---|
const EOS_AntiCheatCommon_OnMessageToClientCallbackInfo* Data |