Class AEpicOnlineService

java.lang.Object
host.anzo.anticheat.server.api.AEpicOnlineService
All Implemented Interfaces:
host.anzo.commons.interfaces.startup.IShutdownable

public abstract class AEpicOnlineService extends Object implements host.anzo.commons.interfaces.startup.IShutdownable
Since:
9/20/2023
  • Constructor Details

    • AEpicOnlineService

      public AEpicOnlineService()
  • Method Details

    • initialize

      protected void initialize()
    • getClient

      protected abstract IAntiCheatNetworkClient getClient(int connectionId)
      Parameters:
      connectionId - network client connection ID
      Returns:
      network client by specified connection ID
    • sendMessageToClient

      protected abstract void sendMessageToClient(IAntiCheatNetworkClient networkClient, String message)
      Send a specified message to the network client
      Parameters:
      networkClient - network client
      message - message text to send
    • sendEacMessageToClient

      protected abstract void sendEacMessageToClient(IAntiCheatNetworkClient gameClient, host.anzo.eossdk.eos.sdk.anticheat.common.callbackresults.EOS_AntiCheatCommon_OnMessageToClientCallbackInfo callbackInfo)
      Send an anti-cheat message from EOS to client
      Parameters:
      gameClient - network client
      callbackInfo - anti-cheat message to send
    • onClientConnected

      public void onClientConnected(IAntiCheatNetworkClient gameClient)
      Event must be called when a new client connected to server
      Parameters:
      gameClient - game client
    • onClientMessage

      public void onClientMessage(IAntiCheatNetworkClient gameClient, byte[] data)
      Event must be called when need to send an EAC message from the client to server
      Parameters:
      gameClient - game client
      data - received bytes
    • onClientDisconnected

      public void onClientDisconnected(@NotNull @NotNull IAntiCheatNetworkClient gameClient)
      Event must be called when a client disconnected from game server
      Parameters:
      gameClient - WebSocket session
    • onShutdown

      public void onShutdown()
      Specified by:
      onShutdown in interface host.anzo.commons.interfaces.startup.IShutdownable