Class ConnectionService
java.lang.Object
br.net.dd.netherwingcore.bnetserver.services.ServiceBase
br.net.dd.netherwingcore.bnetserver.services.ConnectionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallServerMethod(Session session, int token, int methodId, MessageBuffer buffer) Handles an incoming RPC call for this service.intBase class for all services.Methods inherited from class ServiceBase
parseMessage, sendErrorResponse, sendResponse
-
Constructor Details
-
ConnectionService
public ConnectionService()
-
-
Method Details
-
getServiceHash
public int getServiceHash()Description copied from class:ServiceBaseBase class for all services. Each service must implement the getServiceHash method to return its unique hash, and the callServerMethod to handle incoming RPC calls.- Specified by:
getServiceHashin classServiceBase
-
callServerMethod
Description copied from class:ServiceBaseHandles an incoming RPC call for this service. The methodId identifies which method is being called, and the buffer contains the serialized request data.- Specified by:
callServerMethodin classServiceBase- Parameters:
session- the session from which the call originatedtoken- the authentication token associated with the callmethodId- the ID of the method being calledbuffer- the buffer containing the serialized request data
-