Package host.anzo.anticheat.server.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IAntiCheatNetworkClientgetClient(int connectionId) protected voidvoidEvent must be called when a new client connected to servervoidonClientDisconnected(@NotNull IAntiCheatNetworkClient client) Event must be called when a client disconnected from game servervoidonClientMessage(IAntiCheatNetworkClient client, byte[] data) Event must be called when need to send an EAC message from the client to servervoid
-
Constructor Details
-
AEpicOnlineService
public AEpicOnlineService()
-
-
Method Details
-
initialize
protected void initialize() -
getClient
- Parameters:
connectionId- network client connection ID- Returns:
- network client by specified connection ID
-
onClientConnected
Event must be called when a new client connected to server- Parameters:
client- game client
-
onClientMessage
Event must be called when need to send an EAC message from the client to server- Parameters:
client- game clientdata- received bytes
-
onClientDisconnected
Event must be called when a client disconnected from game server- Parameters:
client- WebSocket session
-
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfacehost.anzo.commons.interfaces.startup.IShutdownable
-