Class ConnectionService

java.lang.Object
br.net.dd.netherwingcore.bnetserver.services.ServiceBase
br.net.dd.netherwingcore.bnetserver.services.ConnectionService

public class ConnectionService extends ServiceBase
  • Constructor Details

    • ConnectionService

      public ConnectionService()
  • Method Details

    • getServiceHash

      public int getServiceHash()
      Description copied from class: ServiceBase
      Base 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:
      getServiceHash in class ServiceBase
    • callServerMethod

      public void callServerMethod(Session session, int token, int methodId, MessageBuffer buffer)
      Description copied from class: ServiceBase
      Handles 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:
      callServerMethod in class ServiceBase
      Parameters:
      session - the session from which the call originated
      token - the authentication token associated with the call
      methodId - the ID of the method being called
      buffer - the buffer containing the serialized request data