theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Proxy_TCL_API

MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx More...

+ Collaboration diagram for MqContextC_Proxy_TCL_API:

Functions

static OT_ProcRet tclmqmsgque_MqContextC_ProxyForward (MqContextC_ARGS)
  Tcl: $sourceCtx ProxyForward targetCtx:MqContextC ?dump:MqDumpC="MK_NULL"? ?timeout:MkTimeoutE|int32=DEFAULT? C-API
send the entire read-data-package-data to the link-target
 
static OT_ProcRet tclmqmsgque_MqContextC_ProxyItem (MqContextC_ARGS)
  Tcl: $sourceCtx ProxyItem targetCtx:MqContextC C-API
Copy a single-data-item from the sourceCtx to the targetCtx.
 

Detailed Description

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.

See also
MqDumpC

Example: A typical proxy-setup in pseudo C++ code

void myService () {
MqContextC *ftr = SlaveGetFilter(); // get the "slave" with id "1" (the filter)
...
ftr->SendSTART(); // start the FORWARD
while (ReadItemExists()) { // read ALL data from the ORIGINAL service-call
ProxyItem(ftr); // forward a SINGEL item from "this" to "ftr"
}
...
ftr->SendEND_AND_WAIT("MYTK"); // send the data.package to "ftr"
...
SendSTART(); // start the ANSWER
while (ftr->ReadItemExists()) { // read ALL data from the "MYTK" service-call
ftr->ProxyItem(this); // forward a SINGEL item from "ftr" to "this"
}
SendRETURN(); // answer the ORIGINAL service call
}

Function Documentation

◆ tclmqmsgque_MqContextC_ProxyForward()

static OT_ProcRet tclmqmsgque_MqContextC_ProxyForward ( MqContextC_ARGS )
static

Tcl: $sourceCtx ProxyForward targetCtx:MqContextC ?dump:MqDumpC="MK_NULL"? ?timeout:MkTimeoutE|int32=DEFAULT? C-API
send the entire read-data-package-data to the link-target

Definition at line 1944 of file MqContextC_tcl.c.

1944 {
1947 MQ_CTX targetCtx = 0;
1949 MQ_DMP dump = NULL;
1954 MkErrorC_Check(hdl,MqProxyForward (hdl, targetCtx, dump, timeout));
1956 goto end;
1957 error:
1959 end:
1961}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define ProxyForward_doc
#define OT_SETUP_hdl
#define error
Definition high_lng.h:339
#define MK_NULL_NO
#define MK_NULL_YES
MK_TIMEOUT_DEFAULT
time_t MK_TIME_T
#define MqProxyForward(...)
MK_TIME_T timeout
Definition high_lng.h:133
#define OT_CHECK_TIME_T(val)
#define OT_CHECK_CTX(val, nullB)
#define OT_CHECK_DMP(val, nullB)
PUBLIC data structure for the tclmqmsgque-specific-data
MqDumpC - the class known as dmp or dump is used to export a tclmqmsgque data package as binary …

◆ tclmqmsgque_MqContextC_ProxyItem()

static OT_ProcRet tclmqmsgque_MqContextC_ProxyItem ( MqContextC_ARGS )
static

Tcl: $sourceCtx ProxyItem targetCtx:MqContextC C-API
Copy a single-data-item from the sourceCtx to the targetCtx.

Definition at line 1964 of file MqContextC_tcl.c.

1964 {
1967 MQ_CTX targetCtx = 0;
1970 MkErrorC_Check(hdl,MqProxyItem (hdl, targetCtx));
1972 goto end;
1973 error:
1975 end:
1977}
#define OT_SETUP_ONEARG(d)
#define ProxyItem_doc
#define MqProxyItem(...)