MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx More...
Functions | |
MQ_EXTERN enum MkErrorE | libmqmsgque::MqProxyItem_RT (MK_RT const mkrt, MQ_CTX const sourceCtx, MQ_CTX const targetCtx) |
Copy a single-data-item from the sourceCtx to the targetCtx. | |
MQ_EXTERN enum MkErrorE | libmqmsgque::MqProxyPackage_RT (MK_RT const mkrt, MQ_CTX const sourceCtx, MQ_CTX const targetCtx, MQ_DMP const dump) |
copy all package-items from the sourceCtx to the targetCtx … | |
MQ_EXTERN enum MkErrorE | libmqmsgque::MqProxyForward_RT (MK_RT const mkrt, MQ_CTX const sourceCtx, MQ_CTX const targetCtx, MQ_DMP const dump, MK_TIME_T const timeout) |
send the entire read-data-package-data to the link-target … | |
MqContextC - MqContextC_ProxyApi_Proxy_C_API - overload | |
#define | MqProxyForward_NULL(...) |
#define | MqProxyForward(...) |
#define | MqProxyForward_3(sourceCtx, targetCtx, dump) |
#define | MqProxyForward_2(sourceCtx, targetCtx) |
#define | MqProxyForward_E(...) |
#define | MqProxyForward_C(...) |
#define | MqProxyItem_NULL(...) |
#define | MqProxyItem(...) |
#define | MqProxyItem_E(...) |
#define | MqProxyItem_C(...) |
#define | MqProxyPackage_NULL(...) |
#define | MqProxyPackage(...) |
#define | MqProxyPackage_2(sourceCtx, targetCtx) |
#define | MqProxyPackage_E(...) |
#define | MqProxyPackage_C(...) |
MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx
The proxy-feature is used in a filter-setup to process-and-forward incoming data.
Example: A typical proxy-setup in pseudo C++ code
#define MqProxyForward | ( | ... | ) |
Definition at line 334 of file msgque_overload_mq.h.
#define MqProxyForward_2 | ( | sourceCtx, | |
targetCtx ) |
Definition at line 336 of file msgque_overload_mq.h.
#define MqProxyForward_3 | ( | sourceCtx, | |
targetCtx, | |||
dump ) |
Definition at line 335 of file msgque_overload_mq.h.
#define MqProxyForward_C | ( | ... | ) |
Definition at line 338 of file msgque_overload_mq.h.
#define MqProxyForward_E | ( | ... | ) |
Definition at line 337 of file msgque_overload_mq.h.
#define MqProxyForward_NULL | ( | ... | ) |
Definition at line 333 of file msgque_overload_mq.h.
#define MqProxyItem | ( | ... | ) |
Definition at line 340 of file msgque_overload_mq.h.
#define MqProxyItem_C | ( | ... | ) |
Definition at line 342 of file msgque_overload_mq.h.
#define MqProxyItem_E | ( | ... | ) |
Definition at line 341 of file msgque_overload_mq.h.
#define MqProxyItem_NULL | ( | ... | ) |
Definition at line 339 of file msgque_overload_mq.h.
#define MqProxyPackage | ( | ... | ) |
Definition at line 344 of file msgque_overload_mq.h.
#define MqProxyPackage_2 | ( | sourceCtx, | |
targetCtx ) |
Definition at line 345 of file msgque_overload_mq.h.
#define MqProxyPackage_C | ( | ... | ) |
Definition at line 347 of file msgque_overload_mq.h.
#define MqProxyPackage_E | ( | ... | ) |
Definition at line 346 of file msgque_overload_mq.h.
#define MqProxyPackage_NULL | ( | ... | ) |
Definition at line 343 of file msgque_overload_mq.h.
MQ_EXTERN enum MkErrorE libmqmsgque::MqProxyForward_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | sourceCtx, | ||
MQ_CTX const | targetCtx, | ||
MQ_DMP const | dump, | ||
MK_TIME_T const | timeout ) |
send the entire read-data-package-data to the link-target …
The goal of this function is to link two context, typically a master and a slave (filter). This function is typically used in a service or and event callback to send the entire package and wait for the answer.
Example of a typical usage in pseudo c++
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | sourceCtx | the source of the copy |
[in,out] | targetCtx | the target of the copy |
[in] | dump | if not MK_NULL , the value is the source of the copy, dump is the return from MqDumpExport, |
[in] | timeout | in seconds until a timeout-error is raised (possible values like ProcessEvent) (libmkkernel::MK_TIMEOUT_DEFAULT=libmkkernel::MK_TIMEOUT_USER ) |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqProxyItem_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | sourceCtx, | ||
MQ_CTX const | targetCtx ) |
Copy a single-data-item from the sourceCtx to the targetCtx.
MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx
The proxy-feature is used in a filter-setup to process-and-forward incoming data.
Example: A typical proxy-setup in pseudo C++ code
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | sourceCtx | the source of the copy |
[in,out] | targetCtx | the target of the copy |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqProxyPackage_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | sourceCtx, | ||
MQ_CTX const | targetCtx, | ||
MQ_DMP const | dump ) |
copy all package-items from the sourceCtx to the targetCtx …
This operation is different from MqProxyForward because MqSendSTART and MqSendEND etc is missing. The advantage of this command is that additional items can be added.
Example of a typical usage in pseudo c++
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | sourceCtx | the source of the copy |
[in,out] | targetCtx | the target of the copy |
[in] | dump | if not MK_NULL , the value is the source of the copy, dump is the return from MqDumpExport, |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |