EOS_AntiCheatClient_AddNotifyMessageToPeer

EOS API reference page for EOS_AntiCheatClient_AddNotifyMessageToPeer

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

C

C#

This function is part of the [AntiCheatClient Interface](Interfaces/AntiCheatClient).

Remarks

Add a callback issued when a new message must be dispatched to a connected peer. The bound function will only be called between a successful call to EOS_AntiCheatClient_BeginSession and the matching EOS_AntiCheatClient_EndSession call in mode EOS_ACCM_PeerToPeer. Mode: EOS_ACCM_PeerToPeer.

Return Value

A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise

Parameters

EOS_AntiCheatClient_AddNotifyMessageToPeer

Parameter Type And Name

Usage Information

EOS_HAntiCheatClient Handle

const EOS_AntiCheatClient_AddNotifyMessageToPeerOptions* Options

Structure containing input data

void* ClientData

This value is returned to the caller when NotificationFn is invoked

EOS_AntiCheatClient_OnMessageToPeerCallback NotificationFn

The callback to be fired

This function enables your callback (the NotificationFn parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_AntiCheatClient_OnMessageToPeerCallback to report the results of its operation.

Callback Remarks

Callback issued when a new message must be dispatched to a connected peer. Messages contain opaque binary data of up to 256 bytes and must be transmitted to the correct peer using the game's own networking layer, then delivered to the client anti-cheat instance using the EOS_AntiCheatClient_ReceiveMessageFromPeer function. This callback is always issued from within EOS_Platform_Tick on its calling thread.

Callback Parameters

EOS_AntiCheatClient_OnMessageToPeerCallback

Parameter Type And Name

Usage Information

const EOS_AntiCheatCommon_OnMessageToClientCallbackInfo* Data

Related API Members

This function is part of the [AntiCheatClient Interface](Interfaces/AntiCheatClient).

Remarks

Add a callback issued when a new message must be dispatched to a connected peer. The bound function will only be called between a successful call to EOS_AntiCheatClient_BeginSession and the matching EOS_AntiCheatClient_EndSession call in mode EOS_ACCM_PeerToPeer. Mode: EOS_ACCM_PeerToPeer.

Return Value

A valid notification ID if successfully bound, or EOS_INVALID_NOTIFICATIONID otherwise

Parameters

AntiCheatClient.AntiCheatClientInterface.AddNotifyMessageToPeer

Parameter Type And Name

Usage Information

AddNotifyMessageToPeerOptions options

Structure containing input data

object clientData

This value is returned to the caller when NotificationFn is invoked

OnMessageToPeerCallback notificationFn

The callback to be fired

This function enables your callback (the NotificationFn parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.

Callback Function Information

Because this function is asynchronous, it employs a callback of type EOS_AntiCheatClient_OnMessageToPeerCallback to report the results of its operation.

Callback Remarks

Callback issued when a new message must be dispatched to a connected peer. Messages contain opaque binary data of up to 256 bytes and must be transmitted to the correct peer using the game's own networking layer, then delivered to the client anti-cheat instance using the EOS_AntiCheatClient_ReceiveMessageFromPeer function. This callback is always issued from within EOS_Platform_Tick on its calling thread.

Callback Parameters

AntiCheatClient.OnMessageToPeerCallback

Parameter Type And Name

Usage Information

AntiCheatCommon.OnMessageToClientCallbackInfo data

Related API Members

タグ