Function server_add_method_callback

Function Documentation

ECAL_API bool server_add_method_callback(ECAL_HANDLE handle_, const char *method_name_, const char *req_type_, const char *resp_type_, const MethodCallbackCT callback_, void *par_)

Add server method callback.


True if succeeded.

  • handle_: Server handle.

  • method_name_: Service method name.

  • req_type_: Method request type (default = “”).

  • resp_type_: Method response type (default = “”).

  • callback_: Callback function for server request.

  • par_: User defined context that will be forwarded to the request function.