theLink 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches

Service callback summary …

+ Collaboration diagram for MqContextC_ServiceApi_Callback:

Service callback summary …

callback as service

MqContextC - the callback-function is used as a service-handle or as a event-handle

A service is using a callback to act on an incoming service-request. The callback is linked to a MqContextC_ServiceApi_Identifer with MqServiceCreate or is used as argument to the MqSendEND_AND_CALLBACK function.

service callbacks are:

Attention

The callback return an MkErrorE and to work propper the servive allways have to return the runtime-error-code-attribute attribute and not only MK_ERROR (MkErrorE.ERROR) or MK_OK (MkErrorE.OK).

A Proper return can be done using the following code:

  1. MkRuntimeS::error_mk->MkErrorS::code (c: (*mkrt).error_mk.code)
  2. MkRuntimeGetErrorCode (c: MkRuntimeGetErrorCode(mkrt))
  3. MkErrorDEFAULT and MkErrorGetCode (c: MkErrorGetCode(MkErrorDEFAULT()))
callback usage
read more at: Callback Signature List