public class EOS_AntiCheatClient_Interface
extends com.sun.jna.PointerType
| Constructor and Description |
|---|
EOS_AntiCheatClient_Interface() |
EOS_AntiCheatClient_Interface(com.sun.jna.Pointer address) |
| Modifier and Type | Method and Description |
|---|---|
EOS_EResult |
addExternalIntegrityCatalog(EOS_AntiCheatClient_AddExternalIntegrityCatalogOptions options)
Optional.
|
EOS_NotificationId |
addNotifyClientIntegrityViolated(com.sun.jna.Pointer clientData,
EOS_AntiCheatClient_OnClientIntegrityViolatedCallback notificationFn)
Add a callback when a message must be displayed to the local client informing them on a local integrity violation,
which will prevent further online play.
|
EOS_NotificationId |
addNotifyMessageToPeer(com.sun.jna.Pointer clientData,
EOS_AntiCheatClient_OnMessageToPeerCallback notificationFn)
Add a callback issued when a new message must be dispatched to a connected peer.
|
EOS_NotificationId |
addNotifyMessageToServer(com.sun.jna.Pointer clientData,
EOS_AntiCheatClient_OnMessageToServerCallback notificationFn)
Add a callback issued when a new message must be dispatched to the game server.
|
EOS_NotificationId |
addNotifyPeerActionRequired(com.sun.jna.Pointer clientData,
EOS_AntiCheatClient_OnPeerActionRequiredCallback notificationFn)
Add a callback issued when an action must be applied to a connected client.
|
EOS_NotificationId |
addNotifyPeerAuthStatusChanged(com.sun.jna.Pointer clientData,
EOS_AntiCheatClient_OnPeerAuthStatusChangedCallback notificationFn)
Add an optional callback issued when a connected peer's authentication status changes.
|
EOS_EResult |
beginSession(EOS_ProductUserId productUserId,
EOS_EAntiCheatClientMode mode)
Begins a multiplayer game session.
|
EOS_EResult |
endSession()
Ends a multiplayer game session, either by leaving an ongoing session or shutting it down entirely.
|
int |
getProtectMessageOutputLength(int dataSize)
Optional NetProtect feature for game message encryption.
|
java.nio.ByteBuffer |
protectMessage(byte[] data,
int outBufferSizeBytes)
Optional NetProtect feature for game message encryption.
|
EOS_EResult |
receiveMessageFromPeer(EOS_AntiCheatClient_ReceiveMessageFromPeerOptions options)
Call when an anti-cheat message is received from a peer.
|
EOS_EResult |
receiveMessageFromServer(EOS_AntiCheatClient_ReceiveMessageFromServerOptions options)
Call when an anti-cheat message is received from the game server.
|
EOS_EResult |
registerPeer(EOS_AntiCheatClient_RegisterPeerOptions options)
Registers a connected peer-to-peer client.
|
void |
removeNotifyClientIntegrityViolated(EOS_NotificationId notificationId)
Remove a previously bound EOS_AntiCheatClient_AddNotifyClientIntegrityViolated handler.
|
void |
removeNotifyMessageToPeer(EOS_NotificationId notificationId)
Remove a previously bound EOS_AntiCheatClient_AddNotifyMessageToPeer handler.
|
void |
removeNotifyMessageToServer(EOS_NotificationId notificationId)
Remove a previously bound EOS_AntiCheatClient_AddNotifyMessageToServer handler.
|
void |
removeNotifyPeerActionRequired(EOS_NotificationId notificationId)
Remove a previously bound EOS_AntiCheatClient_AddNotifyPeerActionRequired handler.
|
void |
removeNotifyPeerAuthStatusChanged(EOS_NotificationId notificationId)
Remove a previously bound EOS_AntiCheatClient_AddNotifyPeerAuthStatusChanged handler.
|
EOS_EResult |
reserved01(EOS_AntiCheatClient_Reserved01Options options,
java.nio.IntBuffer outValue)
This function is reserved for future use and must not be called.
|
java.nio.ByteBuffer |
unprotectMessage(byte[] data)
Optional NetProtect feature for game message encryption.
|
EOS_EResult |
unregisterPeer(EOS_AntiCheatClient_UnregisterPeerOptions options)
Unregisters a disconnected peer-to-peer client.
|
public EOS_AntiCheatClient_Interface(com.sun.jna.Pointer address)
public EOS_AntiCheatClient_Interface()
public EOS_NotificationId addNotifyMessageToServer(com.sun.jna.Pointer clientData, EOS_AntiCheatClient_OnMessageToServerCallback notificationFn)
beginSession(EOS_ProductUserId, EOS_EAntiCheatClientMode) and the matching endSession() call in mode EOS_ACCM_ClientServer.
clientData - This value is returned to the caller when NotificationFn is invokednotificationFn - The callback to be firedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyMessageToServer(EOS_NotificationId notificationId)
notificationId - The previously bound notification IDpublic EOS_NotificationId addNotifyMessageToPeer(com.sun.jna.Pointer clientData, EOS_AntiCheatClient_OnMessageToPeerCallback notificationFn)
clientData - This value is returned to the caller when NotificationFn is invokednotificationFn - The callback to be firedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyMessageToPeer(EOS_NotificationId notificationId)
notificationId - The previously bound notification IDpublic EOS_NotificationId addNotifyPeerActionRequired(com.sun.jna.Pointer clientData, EOS_AntiCheatClient_OnPeerActionRequiredCallback notificationFn)
clientData - This value is returned to the caller when NotificationFn is invokednotificationFn - The callback to be firedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyPeerActionRequired(EOS_NotificationId notificationId)
notificationId - The previously bound notification IDpublic EOS_NotificationId addNotifyPeerAuthStatusChanged(com.sun.jna.Pointer clientData, EOS_AntiCheatClient_OnPeerAuthStatusChangedCallback notificationFn)
clientData - This value is returned to the caller when NotificationFn is invokednotificationFn - The callback to be firedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyPeerAuthStatusChanged(EOS_NotificationId notificationId)
notificationId - The previously bound notification IDpublic EOS_NotificationId addNotifyClientIntegrityViolated(com.sun.jna.Pointer clientData, EOS_AntiCheatClient_OnClientIntegrityViolatedCallback notificationFn)
clientData - This value is returned to the caller when NotificationFn is invokednotificationFn - The callback to be firedEOS_NotificationId.EOS_INVALID_NOTIFICATIONID otherwisepublic void removeNotifyClientIntegrityViolated(EOS_NotificationId notificationId)
notificationId - The previously bound notification IDpublic EOS_EResult beginSession(EOS_ProductUserId productUserId, EOS_EAntiCheatClientMode mode)
productUserId - Logged in user identifier from earlier call to EOS_Connect_Login family of functionsmode - Operating modeEOS_EResult.EOS_Success - If the session was started successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this functionpublic EOS_EResult endSession()
Must be called when the multiplayer session ends, or when the local user leaves a session in progress.
EOS_EResult.EOS_Success - If the session was ended normally
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this functionpublic EOS_EResult reserved01(EOS_AntiCheatClient_Reserved01Options options, java.nio.IntBuffer outValue)
options - Structure containing input data.outValue - Reserved.EOS_EResult.EOS_NotImplemented - Alwayspublic EOS_EResult addExternalIntegrityCatalog(EOS_AntiCheatClient_AddExternalIntegrityCatalogOptions options)
options - Structure containing input data.EOS_EResult.EOS_Success - If the integrity catalog was added successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalidpublic EOS_EResult receiveMessageFromServer(EOS_AntiCheatClient_ReceiveMessageFromServerOptions options)
options - Structure containing input data.EOS_EResult.EOS_Success - If the message was processed successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_InvalidRequest - If message contents were corrupt and could not be processed
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this functionpublic int getProtectMessageOutputLength(int dataSize)
throws EOSException
dataSize - input data sizeEOSInvalidParametersException - If input data was invalidEOSAntiCheatInvalidModeException - If the current mode does not support this functionEOSExceptionpublic java.nio.ByteBuffer protectMessage(byte[] data,
int outBufferSizeBytes)
throws EOSException
options.Data and OutBuffer may refer to the same buffer to encrypt in place.
data - The data to encryptoutBufferSizeBytes - The size in bytes of OutBufferEOSInvalidParametersException - If input data was invalidEOSAntiCheatInvalidModeException - If the current mode does not support this functionEOSExceptionpublic java.nio.ByteBuffer unprotectMessage(byte[] data)
throws EOSException
options.Data and OutBuffer may refer to the same buffer to decrypt in place.
data - The data to decryptEOSInvalidParametersException - If input data was invalidEOSAntiCheatInvalidModeException - If the current mode does not support this functionEOSExceptionpublic EOS_EResult registerPeer(EOS_AntiCheatClient_RegisterPeerOptions options)
Must be paired with a call to EOS_AntiCheatClient_UnregisterPeer if this user leaves the session in progress, or EOS_AntiCheatClient_EndSession if the entire session is ending.
options - Structure containing input data.EOS_EResult.EOS_Success - If the player was registered successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this functionpublic EOS_EResult unregisterPeer(EOS_AntiCheatClient_UnregisterPeerOptions options)
Must be called when a user leaves a session in progress.
options - Structure containing input data.EOS_EResult.EOS_Success - If the player was unregistered successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this functionpublic EOS_EResult receiveMessageFromPeer(EOS_AntiCheatClient_ReceiveMessageFromPeerOptions options)
options - Structure containing input data.EOS_EResult.EOS_Success - If the message was processed successfully
EOS_EResult.EOS_InvalidParameters - If input data was invalid
EOS_EResult.EOS_AntiCheat_InvalidMode - If the current mode does not support this function