Loading...
Searching...
No Matches
MqContextC_SendApi_Basics_CC_API

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-serviceMore...

+ Collaboration diagram for MqContextC_SendApi_Basics_CC_API:

Functions

void ccmqmsgque::MqContextC::SendEND (MQ_TOK token, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service
 
void ccmqmsgque::MqContextC::SendEND (const std::string &token, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (const std::string &token, MqServiceICB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (const std::string &token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (MQ_TOK token, MqServiceIF *callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK (const std::string &token, MqServiceIF *callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (const std::string &token, MqServiceICB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (const std::string &token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (MQ_TOK token, MqServiceIF *callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_SUB (const std::string &token, MqServiceIF *callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void ccmqmsgque::MqContextC::SendEND_AND_TRANSACTION (MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_TRANSACTION(MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call
 
void ccmqmsgque::MqContextC::SendEND_AND_TRANSACTION (const std::string &token, const std::string &callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_TRANSACTION(MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call
 
void ccmqmsgque::MqContextC::SendEND_AND_WAIT (MQ_TOK token, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…
 
void ccmqmsgque::MqContextC::SendEND_AND_WAIT (const std::string &token, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
  C++: ctx.SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…
 
void ccmqmsgque::MqContextC::SendSTART ()
  C++: ctx.SendSTART() C-API
initialize the send-data-package. …
 
void ccmqmsgque::MqContextC::SendSYNC ()
  C++: ctx.SendSYNC() C-API
garantee that all pending asynchronous-service-calls are processed. …
 

Detailed Description

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

calling a remote service and wait timeout seconds for an result. If timeout == 0 it is an asynchronous-service-call and if the timeout > 0 it is a synchronous-service-call.

service-call blocking timeout
synchronous yes timeout > 0
asynchronous no timeout == 0

blocking mean waiting max timeout seconds to finishing the service-call:

If an error was raised on the server during the service-processing… the following error-handling will be available

  1. on a synchronous-service-call the error will be the result of the service-call
  2. on a asynchronous-service-call with callback the error will be the result of the callback
  3. on a asynchronous-service-call without callback the error will be send asynchronous from the server to the client . On the client the error will be raised on the NEXT event-handlng-command or as background-error if the libmqmsgque::MqSetupS::BgError function was defined.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]tokenthe MqContextC SERVICE API to identify the service
[in]timeoutin seconds until a timeout-error is raised (possible values like ProcessEvent) (libmkkernel::MK_TIMEOUT_DEFAULT=0)
Exceptions
MkExceptionC→ The default-exception from the Programming-Language-Micro-Kernel (PLMK)
See also
MqSendSYNC

calling a remote service and wait timeout seconds for an result. If timeout == 0 it is an asynchronous-service-call and if the timeout > 0 it is a synchronous-service-call.

service-call blocking timeout
synchronous yes timeout > 0
asynchronous no timeout == 0

blocking mean waiting max timeout seconds to finishing the service-call:

If an error was raised on the server during the service-processing… the following error-handling will be available

  1. on a synchronous-service-call the error will be the result of the service-call
  2. on a asynchronous-service-call with callback the error will be the result of the callback
  3. on a asynchronous-service-call without callback the error will be send asynchronous from the server to the client . On the client the error will be raised on the NEXT event-handlng-command or as background-error if the libmqmsgque::MqSetupS::BgError function was defined.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]tokenthe MqContextC SERVICE API to identify the service
[in]timeoutin seconds until a timeout-error is raised (possible values like ProcessEvent) (libmkkernel::MK_TIMEOUT_DEFAULT=0)
Exceptions
MkExceptionC→ The default-exception from the Programming-Language-Micro-Kernel (PLMK)
See also
MqSendSYNC

Function Documentation

◆ SendEND() [1/2]

void ccmqmsgque::MqContextC::SendEND ( const std::string & token,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

Definition at line 1864 of file MqContextC_inline_cc.hh.

1864 {
1865 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1866 MkRtSetup_X(ctx);
1867 const MK_STRN token_hdl = token.c_str();
1868 enum MkErrorE errVal = MqSendEND(ctx, token_hdl, timeout);
1869 MkErrorC_Check(ctx, errVal);
1870 }
#define MK_NULL_NO
#define MK_UNUSED
const MK_STRB * MK_STRN
#define MkRtSetup_X(x)
MQ_CTX getCTX(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MqContextC instance
#define MqSendEND(...)

◆ SendEND() [2/2]

void ccmqmsgque::MqContextC::SendEND ( MQ_TOK token,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

Definition at line 1856 of file MqContextC_inline_cc.hh.

1856 {
1857 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1858 MkRtSetup_X(ctx);
1859 enum MkErrorE errVal = MqSendEND(ctx, token, timeout);
1860 MkErrorC_Check(ctx, errVal);
1861 }

◆ SendEND_AND_CALLBACK() [1/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( const std::string & token,
MqServiceCCB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1901 of file MqContextC_inline_cc.hh.

1901 {
1902 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1903 MkRtSetup_X(ctx);
1904 const MK_STRN token_hdl = token.c_str();
1905 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1906 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1907 MkErrorC_Check(ctx, errVal);
1908 }
#define MK_RT_CALL
#define MqSendEND_AND_CALLBACK(...)
static enum MkErrorE Call(MQ_SERVICE_CALL_ARGS)
Definition MqCall_cc.cc:81
static MK_CBP Create(MK_RT const mkrt, MqContextC::MqTokenICB const callback, MqContextC *self=NULL)
Definition MqCall_cc.hh:58
static void Free(MQ_SERVICE_FREE_ARGS)
Definition MqCall_cc.cc:70

◆ SendEND_AND_CALLBACK() [2/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( const std::string & token,
MqServiceICB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1882 of file MqContextC_inline_cc.hh.

1882 {
1883 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1884 MkRtSetup_X(ctx);
1885 const MK_STRN token_hdl = token.c_str();
1886 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1887 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1888 MkErrorC_Check(ctx, errVal);
1889 }

◆ SendEND_AND_CALLBACK() [3/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( const std::string & token,
MqServiceIF * callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1920 of file MqContextC_inline_cc.hh.

1920 {
1921 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1922 MkRtSetup_X(ctx);
1923 const MK_STRN token_hdl = token.c_str();
1924 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1925 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1926 MkErrorC_Check(ctx, errVal);
1927 }

◆ SendEND_AND_CALLBACK() [4/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( MQ_TOK token,
MqServiceCCB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1892 of file MqContextC_inline_cc.hh.

1892 {
1893 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1894 MkRtSetup_X(ctx);
1895 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1896 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1897 MkErrorC_Check(ctx, errVal);
1898 }

◆ SendEND_AND_CALLBACK() [5/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( MQ_TOK token,
MqServiceICB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1873 of file MqContextC_inline_cc.hh.

1873 {
1874 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1875 MkRtSetup_X(ctx);
1876 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1877 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1878 MkErrorC_Check(ctx, errVal);
1879 }

◆ SendEND_AND_CALLBACK() [6/6]

void ccmqmsgque::MqContextC::SendEND_AND_CALLBACK ( MQ_TOK token,
MqServiceIF * callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1911 of file MqContextC_inline_cc.hh.

1911 {
1912 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1913 MkRtSetup_X(ctx);
1914 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1915 enum MkErrorE errVal = MqSendEND_AND_CALLBACK(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1916 MkErrorC_Check(ctx, errVal);
1917 }

◆ SendEND_AND_SUB() [1/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( const std::string & token,
MqServiceCCB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1958 of file MqContextC_inline_cc.hh.

1958 {
1959 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1960 MkRtSetup_X(ctx);
1961 const MK_STRN token_hdl = token.c_str();
1962 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1963 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1964 MkErrorC_Check(ctx, errVal);
1965 }
#define MqSendEND_AND_SUB(...)

◆ SendEND_AND_SUB() [2/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( const std::string & token,
MqServiceICB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1939 of file MqContextC_inline_cc.hh.

1939 {
1940 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1941 MkRtSetup_X(ctx);
1942 const MK_STRN token_hdl = token.c_str();
1943 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1944 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1945 MkErrorC_Check(ctx, errVal);
1946 }

◆ SendEND_AND_SUB() [3/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( const std::string & token,
MqServiceIF * callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1977 of file MqContextC_inline_cc.hh.

1977 {
1978 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1979 MkRtSetup_X(ctx);
1980 const MK_STRN token_hdl = token.c_str();
1981 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1982 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token_hdl, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1983 MkErrorC_Check(ctx, errVal);
1984 }

◆ SendEND_AND_SUB() [4/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( MQ_TOK token,
MqServiceCCB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1949 of file MqContextC_inline_cc.hh.

1949 {
1950 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1951 MkRtSetup_X(ctx);
1952 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1953 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1954 MkErrorC_Check(ctx, errVal);
1955 }

◆ SendEND_AND_SUB() [5/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( MQ_TOK token,
MqServiceICB callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1930 of file MqContextC_inline_cc.hh.

1930 {
1931 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1932 MkRtSetup_X(ctx);
1933 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1934 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1935 MkErrorC_Check(ctx, errVal);
1936 }

◆ SendEND_AND_SUB() [6/6]

void ccmqmsgque::MqContextC::SendEND_AND_SUB ( MQ_TOK token,
MqServiceIF * callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1968 of file MqContextC_inline_cc.hh.

1968 {
1969 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1970 MkRtSetup_X(ctx);
1971 auto callback_ptr = MqServiceCallbackC::Create(MK_RT_CALL callback, this);
1972 enum MkErrorE errVal = MqSendEND_AND_SUB(ctx, token, MqServiceCallbackC::Call, callback_ptr, MqServiceCallbackC::Free, timeout);
1973 MkErrorC_Check(ctx, errVal);
1974 }

◆ SendEND_AND_TRANSACTION() [1/2]

void ccmqmsgque::MqContextC::SendEND_AND_TRANSACTION ( const std::string & token,
const std::string & callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_TRANSACTION(MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call

Definition at line 1995 of file MqContextC_inline_cc.hh.

1995 {
1996 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1997 MkRtSetup_X(ctx);
1998 const MK_STRN token_hdl = token.c_str();
1999 const MK_STRN callback_hdl = callback.c_str();
2000 enum MkErrorE errVal = MqSendEND_AND_TRANSACTION(ctx, token_hdl, callback_hdl, timeout);
2001 MkErrorC_Check(ctx, errVal);
2002 }
#define MqSendEND_AND_TRANSACTION(...)

◆ SendEND_AND_TRANSACTION() [2/2]

void ccmqmsgque::MqContextC::SendEND_AND_TRANSACTION ( MQ_TOK token,
MQ_TOK callback,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_TRANSACTION(MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call

Definition at line 1987 of file MqContextC_inline_cc.hh.

1987 {
1988 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
1989 MkRtSetup_X(ctx);
1990 enum MkErrorE errVal = MqSendEND_AND_TRANSACTION(ctx, token, callback, timeout);
1991 MkErrorC_Check(ctx, errVal);
1992 }

◆ SendEND_AND_WAIT() [1/2]

void ccmqmsgque::MqContextC::SendEND_AND_WAIT ( const std::string & token,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…

Definition at line 2013 of file MqContextC_inline_cc.hh.

2013 {
2014 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
2015 MkRtSetup_X(ctx);
2016 const MK_STRN token_hdl = token.c_str();
2017 enum MkErrorE errVal = MqSendEND_AND_WAIT(ctx, token_hdl, timeout);
2018 MkErrorC_Check(ctx, errVal);
2019 }
#define MqSendEND_AND_WAIT(...)

◆ SendEND_AND_WAIT() [2/2]

void ccmqmsgque::MqContextC::SendEND_AND_WAIT ( MQ_TOK token,
MK_TIME_T timeout = MK_TIMEOUT_DEFAULT )
inline

C++: ctx.SendEND_AND_WAIT(MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…

Definition at line 2005 of file MqContextC_inline_cc.hh.

2005 {
2006 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
2007 MkRtSetup_X(ctx);
2008 enum MkErrorE errVal = MqSendEND_AND_WAIT(ctx, token, timeout);
2009 MkErrorC_Check(ctx, errVal);
2010 }
+ Here is the caller graph for this function:

◆ SendSTART()

void ccmqmsgque::MqContextC::SendSTART ( )
inline

C++: ctx.SendSTART() C-API
initialize the send-data-package. …

Definition at line 2022 of file MqContextC_inline_cc.hh.

2022 {
2023 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
2024 MkRtSetup_X(ctx);
2025 enum MkErrorE errVal = MqSendSTART(ctx);
2026 MkErrorC_Check(ctx, errVal);
2027 }
#define MqSendSTART(...)
+ Here is the caller graph for this function:

◆ SendSYNC()

void ccmqmsgque::MqContextC::SendSYNC ( )
inline

C++: ctx.SendSYNC() C-API
garantee that all pending asynchronous-service-calls are processed. …

Definition at line 2030 of file MqContextC_inline_cc.hh.

2030 {
2031 MK_UNUSED auto ctx = getCTX(MK_NULL_NO);
2032 MkRtSetup_X(ctx);
2033 enum MkErrorE errVal = MqSendSYNC(ctx);
2034 MkErrorC_Check(ctx, errVal);
2035 }
#define MqSendSYNC(...)