11#define META_STATIC_OVERWRITE
14using System.Diagnostics;
15using System.Threading.Tasks;
20using System.Reflection;
21using System.Runtime.InteropServices;
22using System.Runtime.CompilerServices;
23using System.Collections.Generic;
24using System.Threading;
32 public partial class MqContextC
34 public partial class MqContextC :
MkObjectC
37 private readonly
static ConstructorInfo ctor =
getCtor(typeof(MqContextC));
38 private readonly
static ThreadLocal<MqContextC> MK_NULL =
new ThreadLocal<MqContextC>(() => {
50 private static IntPtr MqContextC_SelfCreate (IntPtr
mkrt, IntPtr obj, IntPtr env) {
54 private static void MqContextC_SelfUnlink (IntPtr
mkrt, IntPtr
self, IntPtr env) {
58 internal static void SetupThreadCTX (IntPtr
mkrt) {
59 Mq.MqCsTypeUpdate(
mkrt, MqCsTypeLookupE.CTX, MqContextC_SelfCreate, MqContextC_SelfUnlink);
62 #if !META_STATIC_OVERWRITE
67 SetupThreadCTX(IntPtr.Zero);
76 public partial class MqContextC
82 private static IntPtr MqContextCTT = IntPtr.Zero;
83 private static string APP = Assembly.GetEntryAssembly().Location;
93 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(
"CsMqContextC");
96 fDefaultLinkCreate,
null, fDefaultLinkCreate,
null,
97 ProcessExit, ThreadExit, WaitForPipe);
99 Marshal.FreeHGlobal(ident_cstr);
103 if (
Mq.MqInitGetArg0() == IntPtr.Zero) {
104 IntPtr initB =
Mq.MqInitResetArg0();
105 if(Type.GetType(
"Mono.Runtime") !=
null) {
106 IntPtr cstr1 = Marshal.StringToHGlobalAnsi(
"mono");
108 Marshal.FreeHGlobal(cstr1);
110 IntPtr cstr2 = Marshal.StringToHGlobalAnsi(APP);
112 Marshal.FreeHGlobal(cstr2);
117 internal MqContextC (IntPtr
hdl) : base(
hdl) {
118 if (
this is MqServerSetupIF) {
119 IntPtr data = (IntPtr) GCHandle.Alloc(
new MqCall(
mkrt, (
MqServiceICB)((MqServerSetupIF)
this).ServerSetup));
120 Mq.MqConfigSetServerSetup (
mkrt,
hdl, ServiceCall, data, ServiceFree,
null);
123 if (
this is MqServerCleanupIF) {
124 IntPtr data = (IntPtr) GCHandle.Alloc(
new MqCall(
mkrt, (
MqServiceICB)((MqServerCleanupIF)
this).ServerCleanup));
125 Mq.MqConfigSetServerCleanup (
mkrt,
hdl, ServiceCall, data, ServiceFree,
null);
128 if (
this is MqBgErrorIF) {
129 Mq.MqConfigSetBgError (
mkrt,
hdl, ServiceCall, (IntPtr) GCHandle.Alloc(
130 new MqCall(
mkrt, (
MqServiceICB)((MqBgErrorIF)
this).BgError)), ServiceFree,
null);
133 if (
this is MqEventIF) {
134 Mq.MqConfigSetEvent (
mkrt,
hdl, ServiceCall, (IntPtr) GCHandle.Alloc(
135 new MqCall(
mkrt, (
MqServiceICB)((MqEventIF)
this).Event)), ServiceFree,
null);
141 private static int ProcessExit (IntPtr
mkrt,
int num) {
142 Environment.Exit (num);
148 private static int ThreadExit (IntPtr
mkrt,
int num) {
152 private unsafe
static bool WaitForPipe ( IntPtr
mkrt, IntPtr ctx,
MkIdS *idP ) {
154 switch ((*idP).type) {
157 var p = Process.GetProcessById((*idP).val.ToInt32());
163 if ((*idP).setByExtern) {
164 var
hdl = GCHandle.FromIntPtr((*idP).val);
165 var task = (Task)
hdl.Target;
188 static private csmqmsgque.MqCreateF fDefaultLinkCreate =
Mq.MqLinkDefault;
214 IntPtr cstr0 = Marshal.StringToHGlobalAnsi((
string)items[0]);
215 IntPtr cstr1 = Marshal.StringToHGlobalAnsi((
string)items[1]);
216 IntPtr cstr2 = Marshal.StringToHGlobalAnsi((
string)items[2]);
217 IntPtr cstr3 = Marshal.StringToHGlobalAnsi((
string)items[3]);
218 MkErrorE errVal = Mq.MqConfigSetIoTcp (
mkrt,
hdl, cstr0, cstr1, cstr2, cstr3);
219 Marshal.FreeHGlobal(cstr0);
220 Marshal.FreeHGlobal(cstr1);
221 Marshal.FreeHGlobal(cstr2);
222 Marshal.FreeHGlobal(cstr3);
227 IntPtr cstr0 = Marshal.StringToHGlobalAnsi((
string)items[0]);
228 IntPtr cstr1 = Marshal.StringToHGlobalAnsi((
string)items[1]);
229 IntPtr cstr2 = Marshal.StringToHGlobalAnsi((
string)items[2]);
230 IntPtr cstr3 = Marshal.StringToHGlobalAnsi((
string)items[3]);
231 MkErrorE errVal = Mq.MqConfigSetIoTcp (
mkrt,
hdl, cstr0, cstr1, cstr2, cstr3);
232 Marshal.FreeHGlobal(cstr0);
233 Marshal.FreeHGlobal(cstr1);
234 Marshal.FreeHGlobal(cstr2);
235 Marshal.FreeHGlobal(cstr3);
240 IntPtr cstr0 = Marshal.StringToHGlobalAnsi(items[0]);
241 IntPtr cstr1 = Marshal.StringToHGlobalAnsi(items[1]);
242 IntPtr cstr2 = Marshal.StringToHGlobalAnsi(items[2]);
243 IntPtr cstr3 = Marshal.StringToHGlobalAnsi(items[3]);
244 MkErrorE errVal = Mq.MqConfigSetIoTcp (
mkrt,
hdl, cstr0, cstr1, cstr2, cstr3);
245 Marshal.FreeHGlobal(cstr0);
246 Marshal.FreeHGlobal(cstr1);
247 Marshal.FreeHGlobal(cstr2);
248 Marshal.FreeHGlobal(cstr3);
258 public partial class MqContextC {
268 IntPtr __retVal__L =
Mq.MqContextHandleResolve(IntPtr.Zero, netHdl);
280 public partial class MqContextC {
290 IntPtr __retVal__L =
Mq.MqContextNext(
hdl);
296 IntPtr __retVal__L =
Mq.MqContextPrev(
hdl);
304 IntPtr __retVal__L =
Mq.MqContextInstances(IntPtr.Zero);
312 public partial class MqContextC {
322 IntPtr __retVal__L =
Mq.MqContextGetNull();
330 public partial class MqContextC {
340 IntPtr __retVal__L =
Mq.MqClassFactoryGet(
hdl);
355 IntPtr __retVal__L =
Mq.MqClassIdentGet(
hdl);
356 return Marshal.PtrToStringAnsi(__retVal__L);
361 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
363 Marshal.FreeHGlobal(ident_cstr);
369 IntPtr __retVal__L =
Mq.MqClassOriginalIdentGet(
hdl);
370 return Marshal.PtrToStringAnsi(__retVal__L);
377 public partial class MqContextC {
397 Int32 __retVal__L =
Mq.MqConfigGetBuffersize(
hdl);
409 Int32 __retVal__L =
Mq.MqConfigGetIoPipe(
hdl);
415 IntPtr __retVal__L =
Mq.MqConfigGetIoUds(
hdl);
416 return Marshal.PtrToStringAnsi(__retVal__L);
421 bool __retVal__L =
Mq.MqConfigGetIsParent(
hdl);
427 bool __retVal__L =
Mq.MqConfigGetIsServer(
hdl);
433 bool __retVal__L =
Mq.MqConfigGetIsString(
hdl);
439 IntPtr __retVal__L =
Mq.MqConfigGetName(
hdl);
440 return Marshal.PtrToStringAnsi(__retVal__L);
445 Int32 __retVal__L =
Mq.MqConfigGetPkgsize(
hdl);
451 IntPtr __retVal__L =
Mq.MqConfigGetPostfix(
hdl);
452 return Marshal.PtrToStringAnsi(__retVal__L);
457 IntPtr __retVal__L =
Mq.MqConfigGetPrefix(
hdl);
458 return Marshal.PtrToStringAnsi(__retVal__L);
475 IntPtr __retVal__L =
Mq.MqConfigGetStorage(
hdl);
476 return Marshal.PtrToStringAnsi(__retVal__L);
481 long __retVal__L =
Mq.MqConfigGetTimeout(
hdl);
487 IntPtr filename_cstr = Marshal.StringToHGlobalAnsi(filename);
489 Marshal.FreeHGlobal(filename_cstr);
501 MkErrorE errVal =
Mq.MqConfigGetIoTcp(
hdl, out host_out, out port_out, out myhost_out, out myport_out);
503 List<object> __retVal__L =
new List<object>();
504 __retVal__L.Add(host_out);
505 __retVal__L.Add(port_out);
506 __retVal__L.Add(myhost_out);
507 __retVal__L.Add(myport_out);
515 public partial class MqContextC {
532 public partial class MqContextC {
542 bool __retVal__L =
Mq.MqConfigCheckStartAs(
hdl, data);
554 Mq.MqConfigSetBuffersize(
hdl, data);
559 IntPtr pidfile_cstr = Marshal.StringToHGlobalAnsi(pidfile);
561 Marshal.FreeHGlobal(pidfile_cstr);
567 Mq.MqConfigSetIdentFrom(
hdl, data);
572 Mq.MqConfigSetIgnoreExit(
hdl, data);
582 public void ConfigSetIoTcp (
string host =
null,
string port =
null,
string myhost =
null,
string myport =
null) {
583 IntPtr host_cstr = Marshal.StringToHGlobalAnsi(host);
584 IntPtr port_cstr = Marshal.StringToHGlobalAnsi(port);
585 IntPtr myhost_cstr = Marshal.StringToHGlobalAnsi(myhost);
586 IntPtr myport_cstr = Marshal.StringToHGlobalAnsi(myport);
587 MkErrorE errVal =
Mq.MqConfigSetIoTcp(
mkrt,
hdl, host_cstr, port_cstr, myhost_cstr, myport_cstr);
588 Marshal.FreeHGlobal(host_cstr);
589 Marshal.FreeHGlobal(port_cstr);
590 Marshal.FreeHGlobal(myhost_cstr);
591 Marshal.FreeHGlobal(myport_cstr);
597 IntPtr vals_hdl =
MkBufferListC.getOBJ(
"MkBufferListC",vals);
604 IntPtr file_cstr = Marshal.StringToHGlobalAnsi(file);
606 Marshal.FreeHGlobal(file_cstr);
612 Mq.MqConfigSetIsServer(
hdl, data);
617 Mq.MqConfigSetIsString(
hdl, data);
622 IntPtr data_cstr = Marshal.StringToHGlobalAnsi(data);
623 Mq.MqConfigSetName(
mkrt,
hdl, data_cstr);
624 Marshal.FreeHGlobal(data_cstr);
629 Mq.MqConfigSetPkgsize(
hdl, data);
634 IntPtr data_cstr = Marshal.StringToHGlobalAnsi(data);
635 Mq.MqConfigSetPostfix(
mkrt,
hdl, data_cstr);
636 Marshal.FreeHGlobal(data_cstr);
641 IntPtr data_cstr = Marshal.StringToHGlobalAnsi(data);
642 Mq.MqConfigSetPrefix(
mkrt,
hdl, data_cstr);
643 Marshal.FreeHGlobal(data_cstr);
654 IntPtr data_cstr = Marshal.StringToHGlobalAnsi(data);
655 MkErrorE errVal =
Mq.MqConfigSetStartAsString(
hdl, data_cstr);
656 Marshal.FreeHGlobal(data_cstr);
662 IntPtr data_cstr = Marshal.StringToHGlobalAnsi(data);
663 Mq.MqConfigSetStorage(
mkrt,
hdl, data_cstr);
664 Marshal.FreeHGlobal(data_cstr);
669 Mq.MqConfigSetTimeout(
hdl, data);
676 public partial class MqContextC {
691 Mq.MqEnvRestore(
hdl);
698 public partial class MqContextC {
732 public partial class MqContextC {
742 IntPtr __retVal__L =
Mq.MqLinkGetParent(
hdl);
788 Int32 __retVal__L =
Mq.MqLinkGetCtxId(
hdl);
794 IntPtr __retVal__L =
Mq.MqLinkGetTargetIdent(
hdl);
795 return Marshal.PtrToStringAnsi(__retVal__L);
800 bool __retVal__L =
Mq.MqLinkIsConnected(
hdl);
806 bool __retVal__L =
Mq.MqLinkIsParent(
hdl);
820 public partial class MqContextC {
831 public void LogConfig (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0) {
834 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
835 Mq.MqContextLogConfig(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
836 Marshal.FreeHGlobal(callfunc_cstr);
840 public void LogEnv (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0) {
843 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
844 Mq.MqContextLogEnv(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
845 Marshal.FreeHGlobal(callfunc_cstr);
849 public void LogLink (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0) {
852 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
853 Mq.MqContextLogLink(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
854 Marshal.FreeHGlobal(callfunc_cstr);
858 public void LogSetup (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0) {
861 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
862 Mq.MqContextLogSetup(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
863 Marshal.FreeHGlobal(callfunc_cstr);
867 public void LogShort (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0,
string label =
null) {
870 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
871 IntPtr label_cstr = Marshal.StringToHGlobalAnsi(label);
872 Mq.MqContextLogShort(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl, label_cstr);
873 Marshal.FreeHGlobal(callfunc_cstr);
874 Marshal.FreeHGlobal(label_cstr);
878 new public void LogType (
MkObjectC fmtobj =
null,
int debug = 0, [CallerMemberName]
string callfunc =
null,
int lvl = 0) {
881 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
882 Mq.MqContextLogType(
mkrt,
hdl, fmtobj_hdl, debug, callfunc_cstr, lvl);
883 Marshal.FreeHGlobal(callfunc_cstr);
888 IntPtr __retVal__L =
Mq.MqLogParentOrChild(
hdl);
889 return Marshal.PtrToStringAnsi(__retVal__L);
894 IntPtr __retVal__L =
Mq.MqLogServerOrClient(
hdl);
895 return Marshal.PtrToStringAnsi(__retVal__L);
902 public partial class MqContextC {
912 IntPtr __retVal__L =
Mq.MqContextGetBuffer(
mkrt,
hdl);
918 IntPtr __retVal__L =
Mq.MqGetRoot(
hdl);
927 public int Exit ([CallerMemberName]
string callfunc =
null, [CallerFilePath]
string callfile =
null, [CallerLineNumber]
int callline = -1) {
928 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
929 IntPtr callfile_cstr = Marshal.StringToHGlobalAnsi(callfile);
931 Marshal.FreeHGlobal(callfunc_cstr);
932 Marshal.FreeHGlobal(callfile_cstr);
946 public partial class MqContextC {
958 MkErrorE errVal =
Mq.MqProxyForward(
mkrt,
hdl, targetCtx_hdl, dump_hdl, timeout);
973 public partial class MqContextC {
983 IntPtr val_inout_hdl =
MkBufferListC.getOBJ_null_allow(val_inout);
1014 byte[] val_out =
new byte[(int)val_out_ref.
size];
1015 Marshal.Copy(val_out_ref.
data,val_out,0,(
int)val_out_ref.
size);
1024 return val_out != 0;
1032 byte[] val_out =
new byte[(int)val_out_ref.
size];
1033 Marshal.Copy(val_out_ref.
data,val_out,0,(
int)val_out_ref.
size);
1090 return (
byte)val_out;
1112 return Marshal.PtrToStringAnsi(val_out);
1120 return Marshal.PtrToStringAnsi(val_out_ref.
ptr,val_out_ref.
len);
1127 public partial class MqContextC {
1143 IntPtr buf_hdl =
MkBufferC.getOBJ_null_allow(buf);
1164 public partial class MqContextC {
1185 Int32 __retVal__L =
Mq.MqReadGetNumItems(
hdl);
1191 bool __retVal__L =
Mq.MqReadItemExists(
hdl);
1205 public partial class MqContextC {
1224 public void RouteCreate (
string route,
string service,
bool overwrite =
false) {
1225 IntPtr route_cstr = Marshal.StringToHGlobalAnsi(route);
1226 IntPtr service_cstr = Marshal.StringToHGlobalAnsi(service);
1227 MkErrorE errVal =
Mq.MqRouteCreate(
mkrt,
hdl, route_cstr, service_cstr, overwrite);
1228 Marshal.FreeHGlobal(route_cstr);
1229 Marshal.FreeHGlobal(service_cstr);
1234 public void RouteDelete (
string route,
string service,
bool overwrite =
false) {
1235 IntPtr route_cstr = Marshal.StringToHGlobalAnsi(route);
1236 IntPtr service_cstr = Marshal.StringToHGlobalAnsi(service);
1237 MkErrorE errVal =
Mq.MqRouteDelete(
mkrt,
hdl, route_cstr, service_cstr, overwrite);
1238 Marshal.FreeHGlobal(route_cstr);
1239 Marshal.FreeHGlobal(service_cstr);
1245 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
1247 Marshal.FreeHGlobal(ident_cstr);
1248 int elementSize = Marshal.SizeOf(typeof(IntPtr));
1250 for(
int i=0; i<__retVal__L.
size; i++) {
1259 IntPtr service_cstr = Marshal.StringToHGlobalAnsi(service);
1261 Marshal.FreeHGlobal(service_cstr);
1278 return Marshal.PtrToStringAnsi(path_out);
1285 public partial class MqContextC {
1302 var val_size = Marshal.SizeOf(val[0]) * val.Length;
1303 var val_data = Marshal.AllocHGlobal(val_size);
1304 Marshal.Copy(val,0,val_data,val_size);
1318 IntPtr val_hdl =
MkBufferC.getOBJ(
"MkBufferC",val);
1332 var val_size = Marshal.SizeOf(val[0]) * val.Length;
1333 var val_data = Marshal.AllocHGlobal(val_size);
1334 Marshal.Copy(val,0,val_data,val_size);
1403 IntPtr val_cstr = Marshal.StringToHGlobalAnsi(val);
1405 Marshal.FreeHGlobal(val_cstr);
1411 IntPtr val_ref_cstr = Marshal.StringToHGlobalAnsi(val);
1414 Marshal.FreeHGlobal(val_ref_cstr);
1422 public partial class MqContextC {
1432 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1434 Marshal.FreeHGlobal(token_cstr);
1440 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1441 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1442 MkErrorE errVal =
Mq.MqSendEND_AND_CALLBACK(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1443 Marshal.FreeHGlobal(token_cstr);
1449 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1450 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1451 MkErrorE errVal =
Mq.MqSendEND_AND_CALLBACK(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1452 Marshal.FreeHGlobal(token_cstr);
1458 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1459 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1460 MkErrorE errVal =
Mq.MqSendEND_AND_CALLBACK(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1461 Marshal.FreeHGlobal(token_cstr);
1467 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1468 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1469 MkErrorE errVal =
Mq.MqSendEND_AND_SUB(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1470 Marshal.FreeHGlobal(token_cstr);
1476 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1477 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1478 MkErrorE errVal =
Mq.MqSendEND_AND_SUB(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1479 Marshal.FreeHGlobal(token_cstr);
1485 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1486 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1487 MkErrorE errVal =
Mq.MqSendEND_AND_SUB(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1488 Marshal.FreeHGlobal(token_cstr);
1494 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1495 IntPtr callback_cstr = Marshal.StringToHGlobalAnsi(callback);
1496 MkErrorE errVal =
Mq.MqSendEND_AND_TRANSACTION(
mkrt,
hdl, token_cstr, callback_cstr, timeout);
1497 Marshal.FreeHGlobal(token_cstr);
1498 Marshal.FreeHGlobal(callback_cstr);
1504 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1506 Marshal.FreeHGlobal(token_cstr);
1526 public partial class MqContextC {
1562 public partial class MqContextC {
1592 public partial class MqContextC {
1602 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1603 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1604 MkErrorE errVal =
Mq.MqServiceCreate(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree,
null);
1605 Marshal.FreeHGlobal(token_cstr);
1611 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1612 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1613 MkErrorE errVal =
Mq.MqServiceCreate(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree,
null);
1614 Marshal.FreeHGlobal(token_cstr);
1620 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1621 IntPtr callback_ptr = callback ==
null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(
new MqCall(
mkrt,callback));
1622 MkErrorE errVal =
Mq.MqServiceCreate(
mkrt,
hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree,
null);
1623 Marshal.FreeHGlobal(token_cstr);
1629 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1631 Marshal.FreeHGlobal(token_cstr);
1637 bool __retVal__L =
Mq.MqServiceIsTransaction(
hdl);
1643 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1645 Marshal.FreeHGlobal(token_cstr);
1652 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1654 Marshal.FreeHGlobal(token_cstr);
1661 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1662 bool __retVal__L =
Mq.MqServiceProxyCtxExists(
hdl, token_cstr, target_hdl);
1663 Marshal.FreeHGlobal(token_cstr);
1669 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1670 IntPtr ident_cstr = Marshal.StringToHGlobalAnsi(ident);
1671 MkErrorE errVal =
Mq.MqServiceProxyRoundRobin(
mkrt,
hdl, token_cstr, ident_cstr);
1672 Marshal.FreeHGlobal(token_cstr);
1673 Marshal.FreeHGlobal(ident_cstr);
1679 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1681 Marshal.FreeHGlobal(token_cstr);
1687 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1688 bool __retVal__L =
Mq.MqServiceTokenCheck(
hdl, token_cstr);
1689 Marshal.FreeHGlobal(token_cstr);
1695 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1696 bool __retVal__L =
Mq.MqServiceTokenExists(
hdl, token_cstr);
1697 Marshal.FreeHGlobal(token_cstr);
1703 IntPtr __retVal__L =
Mq.MqServiceTokenGet(
hdl);
1704 return Marshal.PtrToStringAnsi(__retVal__L);
1711 public partial class MqContextC {
1721 IntPtr __retVal__L =
Mq.MqSlaveGetMaster(
hdl);
1755 bool __retVal__L =
Mq.MqSlaveCheck(
hdl,
id);
1774 bool __retVal__L =
Mq.MqSlaveIs(
hdl);
1781 IntPtr fct_cstr = Marshal.StringToHGlobalAnsi(fct);
1783 Marshal.FreeHGlobal(fct_cstr);
1788 public void SlaveWorker (
int id,
string fct =
"WORKER", params
string[] args) {
1797 public partial class MqContextC {
1809 return transLIdP_inout;
1816 return transLIdP_inout;
1840 public void StorageLog ([CallerMemberName]
string callfunc =
null) {
1841 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
1843 Marshal.FreeHGlobal(callfunc_cstr);
1849 IntPtr storageFile_cstr = Marshal.StringToHGlobalAnsi(storageFile);
1851 Marshal.FreeHGlobal(storageFile_cstr);
1883 IntPtr otherCtxP_out;
1884 Int32 otherLIdP_out;
1885 MkErrorE errVal =
Mq.MqStorageResolve(
mkrt,
hdl, out otherCtxP_out, out otherLIdP_out);
1887 List<object> __retVal__L =
new List<object>();
1889 __retVal__L.Add(otherLIdP_out);
1897 public partial class MqContextC {
1908 IntPtr __retVal__L =
Mq.MqContextCreate(IntPtr.Zero,
MqContextCTT, tmpl_hdl);
1909 if (__retVal__L == IntPtr.Zero) {
1912 return (IntPtr)__retVal__L;
1921 IntPtr __retVal__L =
Mq.MqContextCreate(IntPtr.Zero,
MqContextCTT, tmpl_hdl);
1922 if (__retVal__L == IntPtr.Zero) {
1925 return MqContextC.MqContextC_ObjCreate(__retVal__L);
static MkBufferC MkBufferC_ObjNew(IntPtr hdl)
static MkBufferListC MkBufferListC_ObjNew(IntPtr hdl)
static void Check(IntPtr ctx, MkErrorE err)
static MkErrorC MkErrorC_ObjNew(IntPtr hdl)
static object atomObjNew(Type type, ConstructorInfo ctor, IntPtr obj)
static IntPtr getOBJ_null_allow(MkObjectC obj)
static object atomObjCreate(Type type, ConstructorInfo ctor, IntPtr obj)
static void atomSelfUnlink(IntPtr self, IntPtr env)
static object atomSelfNull(ConstructorInfo ctor)
static IntPtr getOBJ(string cls, MkObjectC obj)
static ConstructorInfo getCtor(Type type)
static IntPtr atomSelfCreate(ConstructorInfo ctor, IntPtr obj, IntPtr env)
static Mk.MkBinaryR MkBinaryCreate(long size, IntPtr data)
static IntPtr MkRuntimeGet()
static void MkBufferListAppendSTR(IntPtr mkrt, IntPtr bfl, IntPtr val)
static Mk.MkStringR MkStringCreate_1(IntPtr str)
MqContextC - the class known as ctx or context is the application-handle of the application-server an...
static MqContextC MqContextC_ObjNew(IntPtr hdl)
delegate void MqServiceICB()
implements the csmqmsgque API object: public version from MqTokenF as method
delegate void MqServiceCCB(MqContextC ctx)
implements the csmqmsgque API object: public version from MqTokenF as static
static MqContextC MqContextC_ObjNewOrNull(IntPtr hdl)
MqDumpC - the class known as dmp or dump is used to export a csmqmsgque data package as binary …
MqFactoryC - the class known as fct or factory is used to provide an interface to create one or more ...
static MqFactoryC MqFactoryC_ObjNew(IntPtr hdl)
MqMsgque PACKAGE - the package is the toplevel structure of the csmqmsgque …
void ErrorCheck(MkErrorE err)
void ClassIdentSet(string ident)
C#: ctx.ClassIdentSet(string ident) → C-API link the MqContextC to a new MqFactoryC identified ...
string ClassIdentGet()
C#: string ctx.ClassIdentGet() → C-API get the application-identification …
void ClassFactorySet(MqFactoryC item)
C#: ctx.ClassFactorySet(MqFactoryC item) → C-API link the MqContextC to a new MqFactoryC
MqFactoryC ClassFactoryGet()
C#: MqFactoryC ctx.ClassFactoryGet() → C-API get the MqFactoryC used by the MqContextC
string ClassOriginalIdentGet()
C#: string ctx.ClassOriginalIdentGet() → C-API get the MqFactoryS.originalIdent from the MqCont...
new static MqContextC GetNull()
C#: [static] MqContextC MqContextC.GetNull() → C-API Null-Slot - return a MqContextC typed NULL ...
new MqContextC Next()
C#: MqContextC ctx.Next() → C-API get next instance from linked-list of MqContextS type
new static MqContextC HandleResolve(Int32 netHdl)
C#: [static] MqContextC MqContextC.HandleResolve(Int32 netHdl) → C-API Handle-Resolve-Slot - ret...
new static MqContextC Instances()
C#: [static] MqContextC MqContextC.Instances() → C-API get head-instance from linked-list of MqC...
new MqContextC Prev()
C#: MqContextC ctx.Prev() → C-API get previous instance from linked-list of MqContextS type
#define MqContextCTT
class as MkTypeS-class-type for MqContextC in the Target-Programming-Language (TPL) …
void ConfigSetIoTcp(params string[] items)
void ConfigSetIoTcp(params object[] items)
void ConfigSetIoTcp(List< object > items)
int ConfigGetBuffersize()
C#: int ctx.ConfigGetBuffersize() → C-API get the minimum of the read/send buffersize of the so...
string ConfigGetStorage()
C#: string ctx.ConfigGetStorage() → C-API get the storage of the context object
MqIdentE ConfigGetIdentFrom()
C#: MqIdentE ctx.ConfigGetIdentFrom() → C-API get the MqConfigS.identFrom
long ConfigGetTimeout()
C#: long ctx.ConfigGetTimeout() → C-API get the timeout value of the context object
MqStatusIsEF ConfigGetStatusIs()
C#: MqStatusIsEF ctx.ConfigGetStatusIs() → C-API return the MqContextS.statusIs value
string ConfigGetPrefix()
C#: string ctx.ConfigGetPrefix() → C-API get the MqConfigS.dispPrefix
bool ConfigGetIsServer()
C#: bool ctx.ConfigGetIsServer() → C-API does the context object is a server ?
string ConfigGetName()
C#: string ctx.ConfigGetName() → C-API get the name of the context object
bool ConfigGetIsString()
C#: bool ctx.ConfigGetIsString() → C-API does the context object is using the string-mode ?
int ConfigGetIoPipe()
C#: int ctx.ConfigGetIoPipe() → C-API return the MqIoPipeConfigS
void ConfigSetConfigFile(string filename)
C#: ctx.ConfigSetConfigFile(string filename) → C-API set the config-file and parse for well-kno...
bool ConfigGetIsParent()
C#: bool ctx.ConfigGetIsParent() → C-API does the context object is a parent ?...
int ConfigGetPkgsize()
C#: int ctx.ConfigGetPkgsize() → C-API get the maximun size of a BDY package
MqStartE ConfigGetStartAs()
C#: MqStartE ctx.ConfigGetStartAs() → C-API return the MqConfigS.startAs value
string ConfigGetPostfix()
C#: string ctx.ConfigGetPostfix() → C-API get the MqConfigS.dispPostfix
List< object > ConfigGetIoTcp()
C#: {host:string port:string myhost:string myport:string} ctx.ConfigGetIoTcp() → C-API get the ...
string ConfigGetIoUds()
C#: string ctx.ConfigGetIoUds() → C-API return the MqIoUdsConfigS
MkBufferListC ConfigGetIoTcpL()
C#: MkBufferListC ctx.ConfigGetIoTcpL() → C-API get the configuration-data of the tcp-client-se...
void ConfigReset()
C#: ctx.ConfigReset() → C-API clean the MqContextS.config data
void ConfigSetStartAsString(string data)
C#: ctx.ConfigSetStartAsString(string data) → C-API set the MqConfigS.startAs value using strin...
void ConfigSetIoPipe(int fh)
C#: ctx.ConfigSetIoPipe(int fh) → C-API set the pipe configuration data …
void ConfigSetTimeout(long data)
C#: ctx.ConfigSetTimeout(long data) → C-API set the MqIoConfigS.timeout value
void ConfigSetIsString(bool data)
C#: ctx.ConfigSetIsString(bool data) → C-API set the MqConfigS.native value 'S'string or 'L'owE...
bool ConfigCheckStartAs(MqStartE data)
C#: bool ctx.ConfigCheckStartAs(MqStartE data) → C-API check if MqConfigS.startAs can be set to...
void ConfigSetPrefix(string data)
C#: ctx.ConfigSetPrefix(string data) → C-API set the server-part (1) of the application-ident...
void ConfigSetIoUds(string file)
C#: ctx.ConfigSetIoUds(string file) → C-API configure a context to use a uds-client-server-li...
void ConfigSetIoTcp(string host=null, string port=null, string myhost=null, string myport=null)
C#: ctx.ConfigSetIoTcp(string host = null, string port = null, string myhost = null,...
void ConfigSetPkgsize(int data)
C#: ctx.ConfigSetPkgsize(int data) → C-API set the MqIoConfigS.pkgsize value
void ConfigSetIoTcp(MkBufferListC vals)
C#: ctx.ConfigSetIoTcp(MkBufferListC vals) → C-API configure a context to use a tcp-client-se...
void ConfigSetIdentFrom(MqIdentE data)
C#: ctx.ConfigSetIdentFrom(MqIdentE data) → C-API set the MqConfigS.identFrom value
void ConfigSetIgnoreExit(bool data)
C#: ctx.ConfigSetIgnoreExit(bool data) → C-API set the MqSetupS.ignoreExit value
void ConfigSetAllDebug(int data)
C#: ctx.ConfigSetAllDebug(int data) → C-API set the MkRuntimeS::debug value
void ConfigSetIsServer(bool data)
C#: ctx.ConfigSetIsServer(bool data) → C-API set the MqSetupS.isServer value
void ConfigSetName(string data)
C#: ctx.ConfigSetName(string data) → C-API set the MqConfigS.dispName value and cleanup old val...
void ConfigSetStorage(string data)
C#: ctx.ConfigSetStorage(string data) → C-API set the Storage value and cleanup old value
void ConfigSetDaemon(string pidfile)
C#: ctx.ConfigSetDaemon(string pidfile) → C-API start the server-context as daemon …
void ConfigSetBuffersize(int data)
C#: ctx.ConfigSetBuffersize(int data) → C-API set the MqIoConfigS.buffersize value
void ConfigSetPostfix(string data)
C#: ctx.ConfigSetPostfix(string data) → C-API set the client-part (2) of the application-iden...
void ConfigSetStartAs(MqStartE data)
C#: ctx.ConfigSetStartAs(MqStartE data) → C-API set the MqConfigS.startAs value
void EnvRestore()
C#: ctx.EnvRestore() → C-API restore the service-environment
void EnvProtect()
C#: ctx.EnvProtect() → C-API protect the service-environment
MkErrorE ErrorCopy(MqContextC sourceCtx)
C#: MkErrorE targetCtx.ErrorCopy(MqContextC sourceCtx) → C-API copy a MkErrorS from the sourceC...
MkErrorC ErrorFORMAT()
C#: MkErrorC fmtobj.ErrorFORMAT() → C-API helper used to access MkErrorDEFAULT from MqContextC
MkErrorE ErrorMove(MqContextC sourceCtx)
C#: MkErrorE targetCtx.ErrorMove(MqContextC sourceCtx) → C-API move a MkErrorS from the sourceC...
void LinkDelete()
C#: ctx.LinkDelete() → C-API close the client-server-link …
bool LinkIsConnected()
C#: bool ctx.LinkIsConnected() → C-API is the context connected? …
int LinkGetCtxId()
C#: int ctx.LinkGetCtxId() → C-API get an identifier which is unique per parent-or-child-contex...
void LinkCreate(params string[] args)
C#: ctx.LinkCreate(MkBufferListC args = null) → C-API make ctx to a parent-context and setup a ...
bool LinkIsParent()
C#: bool ctx.LinkIsParent() → C-API is the context a parent-context? …
void LinkCreateChild(MqContextC parent, MkBufferListC args=null)
C#: ctx.LinkCreateChild(MqContextC parent, MkBufferListC args = null) → C-API make a context to...
string LinkGetTargetIdent()
C#: string ctx.LinkGetTargetIdent() → C-API get the ident of the link-target …
void LinkCreateChild(MqContextC parent, params string[] args)
C#: ctx.LinkCreateChild(MqContextC parent, MkBufferListC args = null) → C-API make a context to...
MqContextC LinkGetParent()
C#: MqContextC ctx.LinkGetParent() → C-API get the initial parent-context from a client/server ...
void LinkCreate(MkBufferListC args=null)
C#: ctx.LinkCreate(MkBufferListC args = null) → C-API make ctx to a parent-context and setup a ...
void LinkConnect()
C#: ctx.LinkConnect() → C-API re-connect a client-server-link after a server crash or a network...
void LinkShutdown()
C#: ctx.LinkShutdown() → C-API shutdown the communication with a server
void LogShort(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0, string label=null)
C#: ctx.LogShort(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
void LogConfig(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
C#: ctx.LogConfig(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
void LogSetup(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
C#: ctx.LogSetup(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
void LogEnv(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
C#: ctx.LogEnv(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
string LogServerOrClient()
C#: string ctx.LogServerOrClient() → C-API is ctx a SERVER or a CLIENT ? …
string LogParentOrChild()
C#: string ctx.LogParentOrChild() → C-API is ctx a PARENT or a CHILD ? …
new void LogType(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
C#: ctx.LogType(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
void LogLink(MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
C#: ctx.LogLink(MkObjectC fmtobj = null, int debug = 0, [CallerMemberName]string callfunc = null,...
void ProcessEvent(MqWaitOnEventE wait=MqWaitOnEventE.NO, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.ProcessEvent(MqWaitOnEventE wait = MqWaitOnEventE.NO, long timeout = (long)MkTimeoutE....
MqContextC GetRoot()
C#: MqContextC ctx.GetRoot() → C-API get the Root (toplevel initial context)
int Exit([CallerMemberName]string callfunc=null, [CallerFilePath]string callfile=null, [CallerLineNumber]int callline=-1)
C#: int ctx.Exit([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null,...
MkBufferC GetBuffer()
C#: MkBufferC ctx.GetBuffer() → C-API get the MqContextS.ctxbuf object
void ProxyForward(MqContextC targetCtx, MqDumpC dump=null, long timeout=(long) MkTimeoutE.DEFAULT)
C#: sourceCtx.ProxyForward(MqContextC targetCtx, MqDumpC dump = null, long timeout = (long)MkTimeout...
void ProxyItem(MqContextC targetCtx)
C#: sourceCtx.ProxyItem(MqContextC targetCtx) → C-API Copy a single-data-item from the sourceCt...
byte ReadI8()
C#: doc_mq_cs_ReadI8 → C-API read a PRIMITIVE TYPE from the read-data-package …
byte[] ReadBinaryR()
C#: byte[] ctx.ReadBinaryR() → C-API read a MkBinaryR from the read-data-package …
string ReadSTR()
C#: doc_mq_cs_ReadSTR → C-API read a PRIMITIVE TYPE from the read-data-package …
MkBufferListC ReadBFL()
C#: MkBufferListC ctx.ReadBFL() → C-API get a temporary MkBufferListC from next list-item in th...
long ReadI64()
C#: doc_mq_cs_ReadI64 → C-API read a PRIMITIVE TYPE from the read-data-package …
string ReadStringR()
C#: string ctx.ReadStringR() → C-API read a MkStringR from the read-data-package …
short ReadI16()
C#: doc_mq_cs_ReadI16 → C-API read a PRIMITIVE TYPE from the read-data-package …
float ReadFLT()
C#: doc_mq_cs_ReadFLT → C-API read a PRIMITIVE TYPE from the read-data-package …
long ReadLONG()
C#: long ctx.ReadLONG() → C-API read the long native object from the read-data-package
Int32 ReadHDL()
C#: Int32 ctx.ReadHDL() → C-API read the handle from the read-data-package
MkBufferC ReadBUF()
C#: MkBufferC ctx.ReadBUF() → C-API get a temporary MkBufferC from the read-data-package …
byte[] ReadBIN()
C#: doc_mq_cs_ReadBIN → C-API generic function to read an MK_BIN object from the read-data-packa...
int ReadI32()
C#: doc_mq_cs_ReadI32 → C-API read a PRIMITIVE TYPE from the read-data-package …
MkBufferListC ReadALL(MkBufferListC val_inout=null)
C#: MkBufferListC ctx.ReadALL(MkBufferListC val_inout = null) → C-API get a temporary MkBufferL...
bool ReadBOL()
C#: doc_mq_cs_ReadBOL → C-API read a PRIMITIVE TYPE from the read-data-package …
double ReadDBL()
C#: doc_mq_cs_ReadDBL → C-API read a PRIMITIVE TYPE from the read-data-package …
void ReadL_START(MkBufferC buf=null)
C#: ctx.ReadL_START(MkBufferC buf = null) → C-API start to extract a list-items from the read-d...
void ReadL_END()
C#: ctx.ReadL_END() → C-API finish to extract a list-items from the read-data-package....
void ReadT_END()
C#: ctx.ReadT_END() → C-API finish to extract a longterm-transaction-item from the read-data-pa...
void ReadT_START()
C#: ctx.ReadT_START() → C-API start to extract a longterm-transaction-item from the read-data-p...
List< object > ReadLIST()
C#: List<object> ctx.ReadLIST() → C-API get all arguments as native list …
object ReadNEXT()
C#: object ctx.ReadNEXT() → C-API get the next argument as native object …
MkTypeE ReadGetNextType()
C#: MkTypeE ctx.ReadGetNextType() → C-API get the type (MkTypeE) of the next Item in the read-d...
int ReadGetNumItems()
C#: int ctx.ReadGetNumItems() → C-API get the number of items left in the read-data-package …
bool ReadItemExists()
C#: bool ctx.ReadItemExists() → C-API check if an item exists in the read-data-package …
void ReadUndo()
C#: ctx.ReadUndo() → C-API undo the last MqContextC READ API function call …
string RouteGetPath()
C#: string ctx.RouteGetPath() → C-API return the absolut route-connection-string up to the curr...
void RouteTraverse(string service, MkBufferListC args=null)
C#: ctx.RouteTraverse(string service, MkBufferListC args = null) → C-API traverse a tree down a...
void RouteCreate(string route, string service, bool overwrite=false)
C#: ctx.RouteCreate(string route, string service, bool overwrite = false) → C-API create/delete...
MkBufferListC RouteGetTree()
C#: MkBufferListC ctx.RouteGetTree() → C-API create an overview about all available routing-tar...
void RouteTraverse(string service, params string[] args)
C#: ctx.RouteTraverse(string service, MkBufferListC args = null) → C-API traverse a tree down a...
MqContextC[] RouteResolve(string ident, int retnum=-1)
C#: MqContextC[] ctx.RouteResolve(string ident, int retnum = -1) → C-API return a list of all c...
void RouteDelete(string route, string service, bool overwrite=false)
C#: ctx.RouteDelete(string route, string service, bool overwrite = false) → C-API delete a rout...
void SendBIN(byte[] val)
C#: doc_mq_cs_SendBIN → C-API append a MK_BIN object to the send-data-package....
void SendBOL(bool val)
C#: doc_mq_cs_SendBOL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendBUS_FLAT(MkBufferStreamC val)
C#: ctx.SendBUS_FLAT(MkBufferStreamC val) → C-API append a MkBufferStreamC object to the send-d...
void SendBinaryR(byte[] val)
C#: ctx.SendBinaryR(byte[] val) → C-API append a MkBinaryR object to the send-data-package....
void SendI8(byte val)
C#: doc_mq_cs_SendI8 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data-...
void SendHDL(Int32 val)
C#: ctx.SendHDL(Int32 val) → C-API send the handle to the send-data-package
void SendI16(short val)
C#: doc_mq_cs_SendI16 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendSTR(string val)
C#: doc_mq_cs_SendSTR → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendDBL(double val)
C#: doc_mq_cs_SendDBL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendStringR(string val)
C#: ctx.SendStringR(string val) → C-API MqContextC - append a native PRIMITIVE TYPE value to ...
void SendI32(int val)
C#: doc_mq_cs_SendI32 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendI64(long val)
C#: doc_mq_cs_SendI64 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendL_FLAT(MkBufferListC val)
C#: ctx.SendL_FLAT(MkBufferListC val) → C-API append a MkBufferListC object as flat list of ite...
void SendBFL(MkBufferListC val)
C#: ctx.SendBFL(MkBufferListC val) → C-API append a MkBufferListC object to the send-data-packa...
void SendLTR(int transLId)
SendLTR
void SendFLT(float val)
C#: doc_mq_cs_SendFLT → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-da...
void SendLONG(long val)
C#: ctx.SendLONG(long val) → C-API send the long native object to the send-data-package
void SendBUF(MkBufferC val)
C#: ctx.SendBUF(MkBufferC val) → C-API append a MkBufferC object to the send-data-package objec...
void SendEND_AND_TRANSACTION(string token, string callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_TRANSACTION(string token, string callback, long timeout = (long)MkTimeoutE....
void SendEND_AND_SUB(string token, MqServiceCCB callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendEND_AND_CALLBACK(string token, MqServiceIF callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendEND_AND_SUB(string token, MqServiceICB callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendEND_AND_WAIT(string token, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_WAIT(string token, long timeout = (long)MkTimeoutE.DEFAULT) → C-API finish ...
void SendEND_AND_SUB(string token, MqServiceIF callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendEND_AND_CALLBACK(string token, MqServiceCCB callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendSTART()
C#: ctx.SendSTART() → C-API initialize the send-data-package. …
void SendEND_AND_CALLBACK(string token, MqServiceICB callback, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback,...
void SendSYNC()
C#: ctx.SendSYNC() → C-API garantee that all pending asynchronous-service-calls are processed....
void SendEND(string token, long timeout=(long) MkTimeoutE.DEFAULT)
C#: ctx.SendEND(string token, long timeout = (long)MkTimeoutE.DEFAULT) → C-API MqContextC - fin...
void SendL_END()
C#: ctx.SendL_END() → C-API finish to append an embedded body-list-item to the send-data-packag...
void SendT_START()
C#: ctx.SendT_START() → C-API open a longterm-transaction-item …
void SendL_START()
C#: ctx.SendL_START() → C-API start to append an embedded body-list-item to the send-data-packa...
void SendT_END()
C#: ctx.SendT_END() → C-API closed a longterm-transaction-item …
void SendRETURN_SUB()
C#: ctx.SendRETURN_SUB() → C-API return Sub-Data-Blocks required by MqSendEND_AND_SUB …
void SendRETURN()
C#: ctx.SendRETURN() → C-API MqContextC - finish the send-data-block on the server and optional...
void SendERROR()
C#: ctx.SendERROR() → C-API send the data from the MkErrorC to the link target ....
void ServiceStorage(string token)
C#: ctx.ServiceStorage(string token) → C-API setup a service listen on a MqContextC_ServiceApi_...
bool ServiceTokenExists(string token)
C#: bool ctx.ServiceTokenExists(string token) → C-API check if the MqContextC_ServiceApi_Identi...
bool ServiceTokenCheck(string token)
C#: bool ctx.ServiceTokenCheck(string token) → C-API in an ongoing-service-call check if the cu...
void ServiceDelete(string token)
C#: ctx.ServiceDelete(string token) → C-API delete a service. …
void ServiceProxyCtx(string token, MqContextC target)
C#: ctx.ServiceProxyCtx(string token, MqContextC target) → C-API same as MqServiceProxy but use...
void ServiceCreate(string token, MqServiceCCB callback)
C#: ctx.ServiceCreate(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback) → C-API cre...
void ServiceCreate(string token, MqServiceICB callback)
C#: ctx.ServiceCreate(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback) → C-API cre...
bool ServiceIsTransaction()
C#: bool ctx.ServiceIsTransaction() → C-API check if the ongoing-service-call belongs to a tran...
bool ServiceProxyCtxExists(string token, MqContextC target)
C#: bool ctx.ServiceProxyCtxExists(string token, MqContextC target) → C-API check if service wh...
void ServiceCreate(string token, MqServiceIF callback)
C#: ctx.ServiceCreate(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback) → C-API cre...
string ServiceTokenGet()
C#: string ctx.ServiceTokenGet() → C-API in an ongoing-service-call get the current MqContextC_...
void ServiceProxyRoundRobin(string token, string ident)
C#: ctx.ServiceProxyRoundRobin(string token, string ident) → C-API create a proxy-service using...
void ServiceProxy(string token, int id=(int) MqSlaveE.OTHER)
C#: ctx.ServiceProxy(string token, int id = (int)MqSlaveE.OTHER) → C-API create a service to li...
MqContextC SlaveGetMaster()
C#: MqContextC ctx.SlaveGetMaster() → C-API opposite function of MqSlaveGetFilter
bool SlaveCheck(int id)
C#: bool ctx.SlaveCheck(int id) → C-API check if slave-id is valid
void SlaveCreate(int id, MqContextC slave)
C#: ctx.SlaveCreate(int id, MqContextC slave) → C-API create a master/slave link between the ma...
MqContextC SlaveGet(int id)
C#: MqContextC ctx.SlaveGet(int id) → C-API get the slave-context from a master-context …
MqContextC SlaveGetProxy(int id)
C#: MqContextC ctx.SlaveGetProxy(int id) → C-API on slave return the master and on master retur...
bool SlaveIs()
C#: bool ctx.SlaveIs() → C-API is the context a slave-context ? …
MqContextC SlaveGetFilter()
C#: MqContextC ctx.SlaveGetFilter() → C-API get the filter-ctx or the master-ctx …
void SlaveWorker(int id, string fct="WORKER", MkBufferListC args=null)
C#: ctx.SlaveWorker(int id, string fct = "WORKER", MkBufferListC args = null) → C-API create a ...
void SlaveDelete(int id)
C#: ctx.SlaveDelete(int id) → C-API Delete a slave object from a master/slave link identified b...
void SlaveWorker(int id, string fct="WORKER", params string[] args)
C#: ctx.SlaveWorker(int id, string fct = "WORKER", MkBufferListC args = null) → C-API create a ...
void StorageIncrRef(int transLId)
C#: ctx.StorageIncrRef(int transLId) → C-API increase the internal refCount lock of the databas...
void StorageClose()
C#: ctx.StorageClose() → C-API close the storage. …
List< object > StorageResolve()
C#: {otherCtxP:MqContextC otherLIdP:int} ctx.StorageResolve() → C-API extract the context->link...
int StorageDelete(int transLIdP_inout=0)
C#: int ctx.StorageDelete(int transLIdP_inout = 0) → C-API delete the storage-row identified by...
void StorageDecrRef(int transLId)
C#: ctx.StorageDecrRef(int transLId) → C-API decrease the internal refCount lock of the databas...
int StorageCount()
C#: int ctx.StorageCount() → C-API count the number of storage-rows …
int StorageErrCnt(int transLId)
C#: int ctx.StorageErrCnt(int transLId) → C-API increment and return the database row-error-cou...
int StorageImport(int transLIdP_inout=0)
C#: int ctx.StorageImport(int transLIdP_inout = 0) → C-API import the storage-package into the ...
void StorageOpen(string storageFile)
C#: ctx.StorageOpen(string storageFile) → C-API switch to a file-based-transaction-database …
void StorageLog([CallerMemberName]string callfunc=null)
C#: ctx.StorageLog([CallerMemberName]string callfunc = null) → C-API log the storage the status...
int StorageExport()
C#: int ctx.StorageExport() → C-API export the read-data-package into the STORAGE …
static MqContextC Create(MqContextC tmpl=null)
C#: [constructor,static] MqContextC MqContextC.Create(MqContextC tmpl = null) → C-API create and...
MqContextC(MqContextC tmpl=null)
CONSTRUCTOR.
static IntPtr CTOR(MqContextC tmpl=null)
C#: [constructor,static] MqContextC MqContextC.Create(MqContextC tmpl = null) → C-API create and...
static void Setup()
C#: [static] Setup() → C-API setup csmqmsgque internal memory …
create a link between a service-token and a service-callback … → C-API: ServiceCreate
MqStartE
→ C-API: MqStartE → C-API: MqStartE
MqStatusIsEF
→ C-API: MqStatusIsEF → C-API: MqStatusIsEF
MqIdentE
→ C-API: MqIdentE → C-API: MqIdentE
MqSlaveE
→ C-API: MqSlaveE → C-API: MqSlaveE
MqWaitOnEventE
→ C-API: MqWaitOnEventE → C-API: MqWaitOnEventE