Loading...
Searching...
No Matches
MqContextC_cc.hh
Go to the documentation of this file.
1
12/* LABEL-INIT */
13
14#pragma once
15
16#include <list>
17
18namespace ccmqmsgque {
19
22 typedef struct {
26
29 class MqContextC : public MkObjectC {
30
31 // factory constructor need access to hdl
32 template<class T> friend class MqFactoryCT;
33 friend class MqMsgque;
34 friend class MqServiceCallbackC;
35
36 static MK_TYP mqtype;
37
38/* LABEL-START */
39
44
45 public:
46 static thread_local MqContextC MK_NULL_REF;
47
48 private:
49
51 return (hdl != NULL ? static_cast<MqContextC*>((*MqContextC_X2obj(hdl)).self) : &MK_NULL_REF);
52 }
53
54 static MK_PTR MqContextC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
55
57 delete static_cast<MqContextC*>(self);
58 }
59
61
62
66
67#ifndef META_IS_MkObjectC
68 MqContextC (MK_OBJ obj) : MkObjectC(obj) {};
69#endif
70
71 public:
72
73#ifndef META_IS_MkObjectC
75#endif
76
81
83 MQ_CTX getCTX(bool nullB = MK_NULL_NO) const {
84 MQ_CTX ret = reinterpret_cast<MQ_CTX>(hdl);
85 if (unlikely(!nullB && ret == NULL)) InstHdlIsNullError();
86 return ret;
87 };
88
90 MQ_CTXN getCTXN(bool nullB = MK_NULL_NO) const {
91 MQ_CTXN ret = reinterpret_cast<MQ_CTXN>(hdl);
92 if (unlikely(!nullB && ret == NULL)) InstHdlIsNullError();
93 return ret;
94 };
95
97 static MQ_CTX getCTX(MqContextC* clsHdl, bool nullB = MK_NULL_NO) {
98 MQ_CTX ret = clsHdl ? reinterpret_cast<MQ_CTX>(clsHdl->hdl) : NULL;
99 if (unlikely(!nullB && ret == NULL)) ClassHdlIsNullError(MqContextC);
100 return ret;
101 };
102
104 static MQ_CTXN getCTXN(const MqContextC* clsHdl, bool nullB = MK_NULL_NO) {
105 MQ_CTXN ret = clsHdl ? reinterpret_cast<MQ_CTXN>(clsHdl->hdl) : NULL;
106 if (unlikely(!nullB && ret == NULL)) ClassHdlIsNullError(MqContextC);
107 return ret;
108 };
109
111 static MQ_CTX getCTX(const MqContextC& clsHdl, bool nullB = MK_NULL_NO) {
112 return clsHdl.getCTX(nullB);
113 };
114
116 static MQ_CTXN getCTXN(const MqContextC& clsHdl, bool nullB = MK_NULL_NO) {
117 return clsHdl.getCTXN(nullB);
118 };
119
121 bool Check() const {
122 return (hdl && MqCtxCheck(hdl));
123 };
124
125/* LABEL-END */
126
127 public:
128 void Init (MK_STRN caller = __builtin_FUNCTION());
129
130 typedef void (MqContextC::*MqTokenICB) ();
131
137
138 typedef void (*MqTokenCCB) (MqContextC*);
139
145
146 operator MqContextC*() { return this; };
147
148 // BEGIN-MqContextC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
149
153
154 public:
155
156 // doc-key: MqContextC,MqContextC-Class-Export,sc_,public
157
159 static MqContextC* HandleResolve (MK_HDL netHdl);
160
161 // doc-key: MqContextC,MqContextC-Class-Export,om_,public
162
163 // skip class-overload: MK_HDL HandleGet ()
164
166 // MqContextC_Class_CC_API
167
171
172 public:
173
174 // doc-key: MqContextC,MqContextC-Class-Introspection,oc_,public
175
177 MqContextC* Next ();
178
180 MqContextC* Prev ();
181
182 // doc-key: MqContextC,MqContextC-Class-Introspection,sc_,public
183
185 static MqContextC* Instances ();
186
188 // MqContextC_Class_CC_API
189
193
194 public:
195
196 // doc-key: MqContextC,MqContextC-Class-Misc,sc_,public
197
199 static MqContextC* GetNull ();
200
202 // MqContextC_Class_CC_API
203
207
208 public:
209
210 // doc-key: MqContextC,MqContextC-ClassApi-Class,oc_,public
211
213 MqFactoryC* ClassFactoryGet () const;
214
215 // doc-key: MqContextC,MqContextC-ClassApi-Class,om_,public
216
218 void ClassFactorySet (MqFactoryC* item);
219
221 void ClassFactorySet (const MqFactoryC& item);
222
224 MK_STRN ClassIdentGet () const;
225
227 void ClassIdentSet (MK_STRN ident);
228
230 void ClassIdentSet (const std::string& ident);
231
234
236 // MqContextC_ClassApi_Class_CC_API
237
241
242 public:
243
244 // doc-key: MqContextC,MqContextC-ConfigApi-Get,oco,public
245
248
249 // doc-key: MqContextC,MqContextC-ConfigApi-Get,om_,public
250
253
256
259
261 MK_STRN ConfigGetIoUds () const;
262
265
268
271
273 MK_STRN ConfigGetName () const;
274
276 MK_I32 ConfigGetPkgsize () const;
277
279 MK_STRN ConfigGetPostfix () const;
280
282 MK_STRN ConfigGetPrefix () const;
283
286
289
291 MK_STRN ConfigGetStorage () const;
292
295
297 void ConfigSetConfigFile (MK_STRN filename);
298
300 void ConfigSetConfigFile (const std::string& filename);
301
302 // doc-key: MqContextC,MqContextC-ConfigApi-Get,omo,public
303
305 std::tuple<MK_STRN,MK_STRN,MK_STRN,MK_STRN> ConfigGetIoTcp ();
306
308 // MqContextC_ConfigApi_Get_CC_API
309
313
314 public:
315
316 // doc-key: MqContextC,MqContextC-ConfigApi-Interface,om_,public
317
319 void ConfigSetBgError (MqBgErrorICB callback = NULL);
320
322 void ConfigSetBgError (MqBgErrorCCB callback = NULL);
323
325 void ConfigSetBgError (MqBgErrorIF* callback = NULL);
326
328 void ConfigSetEvent (MqEventICB callback = NULL);
329
331 void ConfigSetEvent (MqEventCCB callback = NULL);
332
334 void ConfigSetEvent (MqEventIF* callback = NULL);
335
337 void ConfigSetServerCleanup (MqServerCleanupICB callback = NULL);
338
340 void ConfigSetServerCleanup (MqServerCleanupCCB callback = NULL);
341
343 void ConfigSetServerCleanup (MqServerCleanupIF* callback = NULL);
344
346 void ConfigSetServerSetup (MqServerSetupICB callback = NULL);
347
349 void ConfigSetServerSetup (MqServerSetupCCB callback = NULL);
350
352 void ConfigSetServerSetup (MqServerSetupIF* callback = NULL);
353
355 // MqContextC_ConfigApi_Interface_CC_API
356
360
361 public:
362
363 // doc-key: MqContextC,MqContextC-ConfigApi-Misc,om_,public
364
366 void ConfigReset ();
367
369 // MqContextC_ConfigApi_Misc_CC_API
370
374
375 public:
376
377 // doc-key: MqContextC,MqContextC-ConfigApi-Set,om_,public
378
381
383 void ConfigSetAllDebug (MK_I32 data);
384
386 void ConfigSetBuffersize (MK_I32 data);
387
389 void ConfigSetDaemon (MK_STRN pidfile);
390
392 void ConfigSetDaemon (const std::string& pidfile);
393
395 void ConfigSetIdentFrom (MqIdentE data);
396
398 void ConfigSetIgnoreExit (MK_BOOL data);
399
402
404 void ConfigSetIoTcp (MK_STRN host = NULL, MK_STRN port = NULL, MK_STRN myhost = NULL, MK_STRN myport = NULL);
405
407 void ConfigSetIoTcp (MkBufferListC* vals);
408
410 void ConfigSetIoTcp (const MkBufferListC& vals);
411
413 void ConfigSetIoUds (MK_STRN file);
414
416 void ConfigSetIoUds (const std::string& file);
417
419 void ConfigSetIsServer (MK_BOOL data);
420
422 void ConfigSetIsString (MK_BOOL data);
423
425 void ConfigSetName (MK_STRN data);
426
428 void ConfigSetName (const std::string& data);
429
431 void ConfigSetPkgsize (MK_I32 data);
432
434 void ConfigSetPostfix (MK_STRN data);
435
437 void ConfigSetPostfix (const std::string& data);
438
440 void ConfigSetPrefix (MK_STRN data);
441
443 void ConfigSetPrefix (const std::string& data);
444
446 void ConfigSetStartAs (MqStartE data);
447
450
452 void ConfigSetStartAsString (const std::string& data);
453
455 void ConfigSetStorage (MK_STRN data);
456
458 void ConfigSetStorage (const std::string& data);
459
461 void ConfigSetTimeout (MK_TIME_T data);
462
464 // MqContextC_ConfigApi_Set_CC_API
465
469
470 public:
471
472 // doc-key: MqContextC,MqContextC-EnvApi-Env,om_,public
473
475 void EnvProtect ();
476
478 void EnvRestore ();
479
481 // MqContextC_EnvApi_Env_CC_API
482
486
487 public:
488
489 // doc-key: MqContextC,MqContextC-ErrorApi-Error,oc_,public
490
492 MkErrorC* ErrorFORMAT () const;
493
494 // doc-key: MqContextC,MqContextC-ErrorApi-Error,om_,public
495
497 MkErrorE ErrorCopy (const MqContextC* sourceCtx) const;
498
500 MkErrorE ErrorCopy (const MqContextC& sourceCtx) const;
501
503 MkErrorE ErrorMove (const MqContextC* sourceCtx) const;
504
506 MkErrorE ErrorMove (const MqContextC& sourceCtx) const;
507
509 // MqContextC_ErrorApi_Error_CC_API
510
514
515 public:
516
517 // doc-key: MqContextC,MqContextC-HighApi-High,om_,public
518
520 void SendVL2 (MK_STRN cstr, va_list var_list);
521
523 void SendVL2 (const std::string& cstr, va_list var_list);
524
526 // MqContextC_HighApi_High_CC_API
527
531
532 public:
533
534 // doc-key: MqContextC,MqContextC-LinkApi-Link,oc_,public
535
538
539 // doc-key: MqContextC,MqContextC-LinkApi-Link,om_,public
540
542 void LinkConnect ();
543
545 void LinkCreate (MkBufferListC* args = NULL);
546
548 void LinkCreate (const MkBufferListC& args);
549
551 void LinkCreateChild (MqContextC* parent, MkBufferListC* args = NULL);
552
554 void LinkCreateChild (const MqContextC& parent, const MkBufferListC& args);
555
557 void LinkDelete ();
558
561
564
567
570
572 void LinkShutdown ();
573
575 // MqContextC_LinkApi_Link_CC_API
576
580
581 public:
582
583 // doc-key: MqContextC,MqContextC-LogApi-Log,om_,public
584
586 void Log (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
587
589 void Log (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
590
592 void LogConfig (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
593
595 void LogConfig (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
596
598 void LogEnv (MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
599
601 void LogEnv (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
602
604 void LogLink (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
605
607 void LogLink (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
608
610 void LogSetup (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
611
613 void LogSetup (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
614
616 void LogShort (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) const;
617
619 void LogShort (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) const;
620
622 void LogType (MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
623
625 void LogType (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
626
628 MK_STRN LogParentOrChild () const;
629
631 MK_STRN LogServerOrClient () const;
632
634 // MqContextC_LogApi_Log_CC_API
635
639
640 public:
641
642 // doc-key: MqContextC,MqContextC-MiscApi-Misc,oc_,public
643
646
649
650 // doc-key: MqContextC,MqContextC-MiscApi-Misc,om_,public
651
653 MK_STRN ToString () const;
654
656 void Exit (MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE());
657
660
662 // MqContextC_MiscApi_Misc_CC_API
663
667
668 public:
669
670 // doc-key: MqContextC,MqContextC-ProxyApi-Proxy,om_,public
671
673 void ProxyForward (MqContextC* targetCtx, MqDumpC* dump = NULL, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
674
676 void ProxyForward (const MqContextC& targetCtx, const MqDumpC& dump, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
677
679 void ProxyItem (MqContextC* targetCtx);
680
682 void ProxyItem (const MqContextC& targetCtx);
683
685 // MqContextC_ProxyApi_Proxy_CC_API
686
690
691 public:
692
693 // doc-key: MqContextC,MqContextC-ReadApi-Atom,oci,public
694
696 MkBufferListC* ReadALL (MkBufferListC* val_inout = NULL);
697
698 // doc-key: MqContextC,MqContextC-ReadApi-Atom,oco,public
699
702
704 MkBufferC* ReadBUF ();
705
706 // doc-key: MqContextC,MqContextC-ReadApi-Atom,omo,public
707
709 MK_BNP ReadBIN ();
710
712 MK_BOL ReadBOL ();
713
716
718 MK_DBL ReadDBL ();
719
721 MK_FLT ReadFLT ();
722
724 MK_HDL ReadHDL ();
725
727 MK_I16 ReadI16 ();
728
730 MK_I32 ReadI32 ();
731
733 MK_I64 ReadI64 ();
734
736 MK_I8 ReadI8 ();
737
740
742 MK_LONG ReadLONG ();
743
746
748 MK_STRN ReadSTR ();
749
751 std::string ReadStringR ();
752
754 // MqContextC_ReadApi_Atom_CC_API
755
759
760 public:
761
762 // doc-key: MqContextC,MqContextC-ReadApi-Block,om_,public
763
765 void ReadL_END ();
766
768 void ReadL_START (MkBufferC* buf = NULL);
769
771 void ReadL_START (const MkBufferC& buf);
772
774 void ReadT_END ();
775
777 void ReadT_START ();
778
780 // MqContextC_ReadApi_Block_CC_API
781
785
786 public:
787
788 // doc-key: MqContextC,MqContextC-ReadApi-Misc,om_,public
789
791 void ReadDbg ();
792
795
798
801
803 void ReadUndo ();
804
806 // MqContextC_ReadApi_Misc_CC_API
807
811
812 public:
813
814 // doc-key: MqContextC,MqContextC-RouteApi-Route,oco,public
815
818
819 // doc-key: MqContextC,MqContextC-RouteApi-Route,om_,public
820
822 void RouteCreate (MK_STRN route, MK_STRN service, MK_BOOL overwrite = false);
823
825 void RouteCreate (const std::string& route, const std::string& service, MK_BOOL overwrite = false);
826
828 void RouteDelete (MK_STRN route, MK_STRN service, MK_BOOL overwrite = false);
829
831 void RouteDelete (const std::string& route, const std::string& service, MK_BOOL overwrite = false);
832
834 MqContextC_A RouteResolve (MK_STRN ident, MK_NUM retnum = -1);
835
837 MqContextC_A RouteResolve (const std::string& ident, MK_NUM retnum = -1);
838
840 void RouteTraverse (MK_STRN service, MkBufferListC* args = NULL);
841
843 void RouteTraverse (MK_STRN service, const MkBufferListC& args);
844
846 void RouteTraverse (const std::string& service, MkBufferListC* args = NULL);
847
849 void RouteTraverse (const std::string& service, const MkBufferListC& args);
850
851 // doc-key: MqContextC,MqContextC-RouteApi-Route,omo,public
852
855
857 // MqContextC_RouteApi_Route_CC_API
858
862
863 public:
864
865 // doc-key: MqContextC,MqContextC-SendApi-Atom,om_,public
866
868 void SendBFL (const MkBufferListC* val);
869
871 void SendBFL (const MkBufferListC& val);
872
874 void SendBIN (MK_BNP val);
875
877 void SendBOL (MK_BOL val);
878
880 void SendBUF (const MkBufferC* val);
881
883 void SendBUF (const MkBufferC& val);
884
886 void SendBUS_FLAT (const MkBufferStreamC* val);
887
889 void SendBUS_FLAT (const MkBufferStreamC& val);
890
892 void SendBinaryR (MK_BNP val);
893
895 void SendDBL (MK_DBL val);
896
898 void SendFLT (MK_FLT val);
899
901 void SendHDL (MK_HDL val);
902
904 void SendI16 (MK_I16 val);
905
907 void SendI32 (MK_I32 val);
908
910 void SendI64 (MK_I64 val);
911
913 void SendI8 (MK_I8 val);
914
916 void SendLONG (MK_LONG val);
917
919 void SendLTR (MQ_LTR transLId);
920
922 void SendL_FLAT (const MkBufferListC* val);
923
925 void SendL_FLAT (const MkBufferListC& val);
926
928 void SendSTR (MK_STRN val);
929
931 void SendSTR (const std::string& val);
932
934 void SendStringR (const std::string& val);
935
937 void SendV (MK_FST printfmt, ... ) __attribute__ ((format (printf, 2, 3)));
938
940 void SendVL (MK_FST printfmt, va_list var_list);
941
943 // MqContextC_SendApi_Atom_CC_API
944
948
949 public:
950
951 // doc-key: MqContextC,MqContextC-SendApi-Basics,om_,public
952
954 void SendEND (MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
955
957 void SendEND (const std::string& token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
958
960 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
961
963 void SendEND_AND_CALLBACK (const std::string& token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
964
966 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
967
969 void SendEND_AND_CALLBACK (const std::string& token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
970
972 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
973
975 void SendEND_AND_CALLBACK (const std::string& token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
976
978 void SendEND_AND_SUB (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
979
981 void SendEND_AND_SUB (const std::string& token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
982
984 void SendEND_AND_SUB (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
985
987 void SendEND_AND_SUB (const std::string& token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
988
990 void SendEND_AND_SUB (MQ_TOK token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
991
993 void SendEND_AND_SUB (const std::string& token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
994
996 void SendEND_AND_TRANSACTION (MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
997
999 void SendEND_AND_TRANSACTION (const std::string& token, const std::string& callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1000
1002 void SendEND_AND_WAIT (MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1003
1005 void SendEND_AND_WAIT (const std::string& token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1006
1008 void SendSTART ();
1009
1011 void SendSYNC ();
1012
1014 // MqContextC_SendApi_Basics_CC_API
1015
1019
1020 public:
1021
1022 // doc-key: MqContextC,MqContextC-SendApi-Block,om_,public
1023
1025 void SendL_END ();
1026
1028 void SendL_START ();
1029
1031 void SendT_END ();
1032
1034 void SendT_START ();
1035
1037 // MqContextC_SendApi_Block_CC_API
1038
1042
1043 public:
1044
1045 // doc-key: MqContextC,MqContextC-SendApi-Return,om_,public
1046
1048 void SendERROR ();
1049
1051 void SendRETURN ();
1052
1054 void SendRETURN_SUB ();
1055
1057 // MqContextC_SendApi_Return_CC_API
1058
1062
1063 public:
1064
1065 // doc-key: MqContextC,MqContextC-ServiceApi-Service,om_,public
1066
1068 void ServiceCreate (MQ_TOK token, MqServiceICB callback);
1069
1071 void ServiceCreate (const std::string& token, MqServiceICB callback);
1072
1074 void ServiceCreate (MQ_TOK token, MqServiceCCB callback);
1075
1077 void ServiceCreate (const std::string& token, MqServiceCCB callback);
1078
1080 void ServiceCreate (MQ_TOK token, MqServiceIF* callback);
1081
1083 void ServiceCreate (const std::string& token, MqServiceIF* callback);
1084
1086 void ServiceDelete (MQ_TOK token);
1087
1089 void ServiceDelete (const std::string& token);
1090
1093
1095 void ServiceProxy (MQ_TOK token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER);
1096
1098 void ServiceProxy (const std::string& token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER);
1099
1101 void ServiceProxyCtx (MQ_TOK token, MqContextC* target);
1102
1104 void ServiceProxyCtx (MQ_TOK token, const MqContextC& target);
1105
1107 void ServiceProxyCtx (const std::string& token, MqContextC* target);
1108
1110 void ServiceProxyCtx (const std::string& token, const MqContextC& target);
1111
1114
1116 MK_BOOL ServiceProxyCtxExists (MQ_TOK token, const MqContextC& target);
1117
1119 MK_BOOL ServiceProxyCtxExists (const std::string& token, MqContextC* target);
1120
1122 MK_BOOL ServiceProxyCtxExists (const std::string& token, const MqContextC& target);
1123
1125 void ServiceProxyRoundRobin (MQ_TOK token, MK_STRN ident);
1126
1128 void ServiceProxyRoundRobin (const std::string& token, const std::string& ident);
1129
1131 void ServiceStorage (MQ_TOK token);
1132
1134 void ServiceStorage (const std::string& token);
1135
1138
1140 MK_BOOL ServiceTokenCheck (const std::string& token);
1141
1144
1146 MK_BOOL ServiceTokenExists (const std::string& token);
1147
1150
1152 // MqContextC_ServiceApi_Service_CC_API
1153
1157
1158 public:
1159
1160 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,oc_,public
1161
1164
1165 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,oco,public
1166
1169
1172
1175
1176 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,om_,public
1177
1179 MK_BOOL SlaveCheck (MQ_SLAVE_ID id) const;
1180
1182 void SlaveCreate (MQ_SLAVE_ID id, MqContextC* slave);
1183
1185 void SlaveCreate (MQ_SLAVE_ID id, const MqContextC& slave);
1186
1188 void SlaveDelete (MQ_SLAVE_ID id);
1189
1191 MK_BOOL SlaveIs () const;
1192
1194 void SlaveWorker (MQ_SLAVE_ID id, MK_STRN fct = "WORKER", MkBufferListC* args = NULL);
1195
1197 // MqContextC_SlaveApi_Slave_CC_API
1198
1202
1203 public:
1204
1205 // doc-key: MqContextC,MqContextC-StorageApi-Storage,oci,public
1206
1208 MQ_LTR StorageDelete (MQ_LTR *transLIdP_inout = NULL);
1209
1211 MQ_LTR StorageImport (MQ_LTR *transLIdP_inout = NULL);
1212
1213 // doc-key: MqContextC,MqContextC-StorageApi-Storage,om_,public
1214
1216 void StorageClose ();
1217
1219 void StorageDecrRef (MQ_LTR transLId);
1220
1222 void StorageIncrRef (MQ_LTR transLId);
1223
1225 void StorageLog (MK_STRN callfunc = __builtin_FUNCTION());
1226
1228 void StorageOpen (MK_STRN storageFile);
1229
1231 void StorageOpen (const std::string& storageFile);
1232
1233 // doc-key: MqContextC,MqContextC-StorageApi-Storage,omo,public
1234
1237
1239 MK_I32 StorageErrCnt (MQ_LTR transLId);
1240
1243
1245 std::tuple<MqContextC*,MQ_LTR> StorageResolve ();
1246
1248 // MqContextC_StorageApi_Storage_CC_API
1249
1253
1254 private:
1255
1256 // doc-key: MqContextC,MqContextC-TOR,sCc,private
1257
1259 static MK_OBJ CTOR (MqContextC* tmpl = NULL);
1260
1261 public:
1262
1263 // doc-key: MqContextC,MqContextC-TOR,sCc,public
1264
1266 static MqContextC* Create (MqContextC* tmpl = NULL);
1267
1269 MqContextC (MqContextC* tmpl = NULL) : MkObjectC(CTOR(tmpl)) {};
1270
1272 // MqContextC_TOR_CC_API
1273
1274 // END-MqContextC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
1275
1276 private:
1278 static inline MK_OBJ CTOR (MK_TYP const typ, MqContextC* tmpl = NULL);
1279
1280 public:
1281
1287 inline bool isParent() {return (MQ_IS_PARENT (reinterpret_cast<MQ_CTX>(hdl)));}
1288 inline bool isChild() {return (MQ_IS_CHILD (reinterpret_cast<MQ_CTX>(hdl)));}
1289 inline bool isMaster() {return (MQ_IS_MASTER (reinterpret_cast<MQ_CTX>(hdl)));}
1290 inline bool isSlave() {return (MQ_IS_SLAVE (reinterpret_cast<MQ_CTX>(hdl)));}
1292
1294
1297 public:
1298
1300 //void LinkCreate (const MkBufferListC& argv);
1301
1303 //void LinkCreateChild (const MqContextC& parent, const MkBufferListC& argv);
1304
1305 // following methods are added "on-demand"
1306 void LinkCheckOptionI32 (MK_STRN opt, MK_I32 *val);
1307
1309
1312
1313 private:
1314
1315 MkBufferListC* SendVA ( MK_STRN cstr, MqTokenF const fCall, MK_PTR data, MqDataFreeF fFree, va_list ap);
1316
1317 public:
1318
1319 // \refdocRT{Send}
1320 // default NO Callback
1321 //void Send (MK_STRN cstr, ...);
1322
1325 MkBufferListC* Send (MK_STRN cstr, ...);
1326 MkBufferListC* Send (const std::string& str, ...);
1327
1330 MkBufferListC* Send (MK_STRN cstr, MqTokenICB const callback, ...);
1331 MkBufferListC* Send (const std::string& str, MqTokenICB const callback, ...);
1332
1335 MkBufferListC* Send (MK_STRN cstr, MqTokenCCB const callback, ...);
1336 MkBufferListC* Send (const std::string& str, MqTokenCCB const callback, ...);
1337
1340 MkBufferListC* Send (MK_STRN cstr, IService * const service, ...);
1341 MkBufferListC* Send (const std::string& str, IService * const service, ...);
1342
1344
1347
1348 public:
1349
1351 inline void SlaveWorker (MK_NUM id, MK_STRN factory, const MkBufferListC& args);
1352
1354
1355 protected:
1358 MqContextC (MK_TYP const typ, MqContextC* tmpl = NULL) : MkObjectC(CTOR(typ,tmpl)) {};
1359
1361 }; // class
1362} // namespace
implements the ccmqmsgque API object: ConfigSetBgError
implements the ccmqmsgque API object: ConfigSetEvent
implements the ccmqmsgque API object: ConfigSetServerCleanup
implements the ccmqmsgque API object: ConfigSetServerSetup
Callback for a Service.
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
MqContextC(MK_TYP const typ, MqContextC *tmpl=NULL)
MqDumpC - the class known as dmp or dump is used to export a ccmqmsgque data package as binary … ...
Definition MqDumpC_cc.hh:27
template wrapper for libmqmsgque::MqFactoryS
data used to define a factory → C-API: libmqmsgque::MqFactoryS
MqMsgque PACKAGE - the package is the toplevel structure of the ccmqmsgque …
#define MK_NULL_NO
#define unlikely(x)
double MK_DBL
unsigned char MK_BOL
signed char MK_I8
signed long long MK_I64
MK_STRB const * MK_FST
int32_t MK_HDL
time_t MK_TIME_T
int32_t MK_NUM
signed short int MK_I16
signed int MK_I32
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
static MK_PTR atomObjCreate(MK_RT const mkrt, MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT const mkrt, MK_OBJ obj)
#define MK_RT_CALL
#define MK_RT_ARGS
static MQ_CTX getCTX(MqContextC *clsHdl, bool nullB=MK_NULL_NO)
return LibMsgqueObject from current MqContextC pointer
void(MqContextC::*) MqTokenICB()
instance-callback
static MqContextC * MqContextC_ObjNew(MK_RT const mkrt, MQ_CTX hdl)
return MqContextC from LibMsgqueObject
static MK_PTR MqContextC_selfCreate(MK_RT const mkrt, MK_OBJ obj, MK_PTR const env)
static MQ_CTXN getCTXN(const MqContextC &clsHdl, bool nullB=MK_NULL_NO)
(const) return LibMsgqueObject from current MqContextC reference
static MqContextC * MqContextC_GetSelf(MQ_CTX hdl)
void Init(MK_STRN caller=__builtin_FUNCTION())
static thread_local MqContextC MK_NULL_REF
void(*) MqTokenCCB(MqContextC *)
class-callback
void MqContextC_Init(MQ_CTX hdl)
MQ_CTX getCTX(bool nullB=MK_NULL_NO) const
return the LibMsgqueObject from current MqContextC instance
bool Check() const
check if pointer is still valid
static void MqContextC_selfDelete(MK_RT const mkrt, MK_PTR self, MK_PTR env)
static MQ_CTX getCTX(const MqContextC &clsHdl, bool nullB=MK_NULL_NO)
return LibMsgqueObject from current MqContextC reference
static MqContextC * MqContextC_ObjCreate(MK_RT const mkrt, MQ_CTX hdl)
static MQ_CTXN getCTXN(const MqContextC *clsHdl, bool nullB=MK_NULL_NO)
(const) return LibMsgqueObject from current MqContextC pointer
MQ_CTXN getCTXN(bool nullB=MK_NULL_NO) const
(const) return the LibMsgqueObject from current MqContextC instance
void ClassIdentSet(MK_STRN ident)
C++: ctx.ClassIdentSet(MK_STRN ident) → C-API link the MqContextC to a new MqFactoryC identifie...
void ClassFactorySet(MqFactoryC *item)
C++: ctx.ClassFactorySet(MqFactoryC* item) → C-API link the MqContextC to a new MqFactoryC
MK_STRN ClassOriginalIdentGet() const
C++: MK_STRN ctx.ClassOriginalIdentGet() → C-API get the libmqmsgque::MqFactoryS::originalIdent...
MK_STRN ClassIdentGet() const
C++: MK_STRN ctx.ClassIdentGet() → C-API get the application-identification …
MqFactoryC * ClassFactoryGet() const
C++: MqFactoryC* ctx.ClassFactoryGet() → C-API get the MqFactoryC used by the MqContextC
static MqContextC * HandleResolve(MK_HDL netHdl)
C++: [static] MqContextC* MqContextC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot -...
MqContextC * Prev()
C++: MqContextC* ctx.Prev() → C-API get previous instance from linked-list of MqContextS type
static MqContextC * Instances()
C++: [static] MqContextC* MqContextC::Instances() → C-API get head-instance from linked-list of ...
MqContextC * Next()
C++: MqContextC* ctx.Next() → C-API get next instance from linked-list of MqContextS type
static MqContextC * GetNull()
C++: [static] MqContextC* MqContextC::GetNull() → C-API Null-Slot - return a MqContextC typed NU...
bool MqCtxCheck(MK_MNGN mng)
check MqContextS -> libmkkernel::MkObjectS::signature …
#define MqContextC_X2obj(x)
enum MkErrorE(* MqTokenF)(MQ_SERVICE_CALL_ARGS)
prototype for an object method function …
void(* MqDataFreeF)(MQ_SERVICE_FREE_ARGS)
prototype for a free additional token data function …
MqStatusIsEF ConfigGetStatusIs()
C++: MqStatusIsEF ctx.ConfigGetStatusIs() → C-API return the libmqmsgque::MqContextS::statusIs ...
MqStartE ConfigGetStartAs()
C++: MqStartE ctx.ConfigGetStartAs() → C-API return the libmqmsgque::MqConfigS::startAs value
MK_STRN ConfigGetStorage() const
C++: MK_STRN ctx.ConfigGetStorage() → C-API get the storage of the context object
MK_I32 ConfigGetPkgsize() const
C++: MK_I32 ctx.ConfigGetPkgsize() → C-API get the maximun size of a BDY package
MQ_SOCK_HDL ConfigGetIoPipe()
C++: MQ_SOCK_HDL ctx.ConfigGetIoPipe() → C-API return the libmqmsgque::MqIoPipeConfigS
MK_TIME_T ConfigGetTimeout() const
C++: MK_TIME_T ctx.ConfigGetTimeout() → C-API get the timeout value of the context object
MkBufferListC * ConfigGetIoTcpL()
C++: MkBufferListC* ctx.ConfigGetIoTcpL() → C-API get the configuration-data of the tcp-client-...
void ConfigSetConfigFile(MK_STRN filename)
C++: ctx.ConfigSetConfigFile(MK_STRN filename) → C-API set the config-file and parse for well-k...
MK_I32 ConfigGetBuffersize() const
C++: MK_I32 ctx.ConfigGetBuffersize() → C-API get the minimum of the read/send buffersize of th...
MK_BOOL ConfigGetIsParent()
C++: MK_BOOL ctx.ConfigGetIsParent() → C-API does the context object is a parent ?...
MK_STRN ConfigGetPostfix() const
C++: MK_STRN ctx.ConfigGetPostfix() → C-API get the libmqmsgque::MqConfigS::postfix
MK_BOOL ConfigGetIsString()
C++: MK_BOOL ctx.ConfigGetIsString() → C-API does the context object is using the string-mode ?
MK_STRN ConfigGetName() const
C++: MK_STRN ctx.ConfigGetName() → C-API get the name of the context object
MqIdentE ConfigGetIdentFrom()
C++: MqIdentE ctx.ConfigGetIdentFrom() → C-API get the libmqmsgque::MqConfigS::identFrom
std::tuple< MK_STRN, MK_STRN, MK_STRN, MK_STRN > ConfigGetIoTcp()
C++: {host:MK_STRN port:MK_STRN myhost:MK_STRN myport:MK_STRN} ctx.ConfigGetIoTcp() → C-API get...
MK_BOOL ConfigGetIsServer()
C++: MK_BOOL ctx.ConfigGetIsServer() → C-API does the context object is a server ?
MK_STRN ConfigGetPrefix() const
C++: MK_STRN ctx.ConfigGetPrefix() → C-API get the libmqmsgque::MqConfigS::prefix
MK_STRN ConfigGetIoUds() const
C++: MK_STRN ctx.ConfigGetIoUds() → C-API return the libmqmsgque::MqIoUdsConfigS
#define MQ_IS_SLAVE(ctx)
#define MQ_IS_PARENT(ctx)
#define MQ_IS_CHILD(ctx)
#define MQ_IS_MASTER(ctx)
void ConfigSetServerCleanup(MqServerCleanupICB callback=NULL)
C++: ctx.ConfigSetServerCleanup(MqServerCleanupICB MqServerCleanupCCB MqServerCleanupIF* callback = ...
void ConfigSetEvent(MqEventICB callback=NULL)
C++: ctx.ConfigSetEvent(MqEventICB MqEventCCB MqEventIF* callback = NULL) → C-API set the libmq...
void ConfigSetServerSetup(MqServerSetupICB callback=NULL)
C++: ctx.ConfigSetServerSetup(MqServerSetupICB MqServerSetupCCB MqServerSetupIF* callback = NULL) →...
void ConfigSetBgError(MqBgErrorICB callback=NULL)
C++: ctx.ConfigSetBgError(MqBgErrorICB MqBgErrorCCB MqBgErrorIF* callback = NULL) → C-API set t...
void ConfigReset()
C++: ctx.ConfigReset() → C-API clean the libmqmsgque::MqContextS::config data
void ConfigSetBuffersize(MK_I32 data)
C++: ctx.ConfigSetBuffersize(MK_I32 data) → C-API set the libmqmsgque::MqIoConfigS::buffersize ...
void ConfigSetPrefix(MK_STRN data)
C++: ctx.ConfigSetPrefix(MK_STRN data) → C-API set the server-part (1) of the application-ide...
MK_BOOL ConfigCheckStartAs(MqStartE data)
C++: MK_BOOL ctx.ConfigCheckStartAs(MqStartE data) → C-API check if libmqmsgque::MqConfigS::sta...
void ConfigSetPostfix(MK_STRN data)
C++: ctx.ConfigSetPostfix(MK_STRN data) → C-API set the client-part (2) of the application-id...
void ConfigSetIgnoreExit(MK_BOOL data)
C++: ctx.ConfigSetIgnoreExit(MK_BOOL data) → C-API set the libmqmsgque::MqSetupS::ignoreExit va...
void ConfigSetIdentFrom(MqIdentE data)
C++: ctx.ConfigSetIdentFrom(MqIdentE data) → C-API set the libmqmsgque::MqConfigS::identFrom va...
void ConfigSetStartAsString(MK_STRN data)
C++: ctx.ConfigSetStartAsString(MK_STRN data) → C-API set the libmqmsgque::MqConfigS::startAs v...
void ConfigSetAllDebug(MK_I32 data)
C++: ctx.ConfigSetAllDebug(MK_I32 data) → C-API set the MkRuntimeS::debug value
void ConfigSetStartAs(MqStartE data)
C++: ctx.ConfigSetStartAs(MqStartE data) → C-API set the libmqmsgque::MqConfigS::startAs value
void ConfigSetDaemon(MK_STRN pidfile)
C++: ctx.ConfigSetDaemon(MK_STRN pidfile) → C-API start the server-context as daemon …
void ConfigSetPkgsize(MK_I32 data)
C++: ctx.ConfigSetPkgsize(MK_I32 data) → C-API set the libmqmsgque::MqIoConfigS::pkgsize value
void ConfigSetStorage(MK_STRN data)
C++: ctx.ConfigSetStorage(MK_STRN data) → C-API set the Storage value and cleanup old value
void ConfigSetIsString(MK_BOOL data)
C++: ctx.ConfigSetIsString(MK_BOOL data) → C-API set the libmqmsgque::MqConfigS::native value '...
void ConfigSetName(MK_STRN data)
C++: ctx.ConfigSetName(MK_STRN data) → C-API set the libmqmsgque::MqConfigS::dispname value and...
void ConfigSetIoTcp(MK_STRN host=NULL, MK_STRN port=NULL, MK_STRN myhost=NULL, MK_STRN myport=NULL)
C++: ctx.ConfigSetIoTcp(MK_STRN host = NULL, MK_STRN port = NULL, MK_STRN myhost = NULL,...
void ConfigSetIoUds(MK_STRN file)
C++: ctx.ConfigSetIoUds(MK_STRN file) → C-API configure a context to use a uds-client-server-...
void ConfigSetTimeout(MK_TIME_T data)
C++: ctx.ConfigSetTimeout(MK_TIME_T data) → C-API set the libmqmsgque::MqIoConfigS::timeout val...
void ConfigSetIoPipe(MQ_SOCK_HDL fh)
C++: ctx.ConfigSetIoPipe(MQ_SOCK_HDL fh) → C-API set the pipe configuration data …
void ConfigSetIsServer(MK_BOOL data)
C++: ctx.ConfigSetIsServer(MK_BOOL data) → C-API set the libmqmsgque::MqSetupS::isServer value
void EnvProtect()
C++: ctx.EnvProtect() → C-API protect the service-environment
void EnvRestore()
C++: ctx.EnvRestore() → C-API restore the service-environment
MkErrorC * ErrorFORMAT() const
C++: MkErrorC* fmtobj.ErrorFORMAT() → C-API helper used to access MkErrorDEFAULT from MqContext...
MkErrorE ErrorCopy(const MqContextC *sourceCtx) const
C++: MkErrorE targetCtx.ErrorCopy(const MqContextC* sourceCtx) → C-API copy a MkErrorS from the...
MkErrorE ErrorMove(const MqContextC *sourceCtx) const
C++: MkErrorE targetCtx.ErrorMove(const MqContextC* sourceCtx) → C-API move a MkErrorS from the...
void SendVL2(MK_STRN cstr, va_list var_list)
C++: ctx.SendVL2(MK_STRN cstr, va_list var_list) → C-API A version of MqSend with va_list suppo...
MK_STRN LogParentOrChild() const
C++: MK_STRN ctx.LogParentOrChild() → C-API is ctx a PARENT or a CHILD ? …
void LogShort(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0, MK_STRN label=NULL) const
C++: ctx.LogShort(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUN...
void LogLink(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogLink(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNC...
void LogType(MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogType(MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION()...
void LogEnv(MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogEnv(MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(),...
void Log(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.Log(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION...
void LogConfig(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogConfig(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FU...
void LogSetup(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogSetup(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUN...
MK_STRN LogServerOrClient() const
C++: MK_STRN ctx.LogServerOrClient() → C-API is ctx a SERVER or a CLIENT ? …
void ProcessEvent(MqWaitOnEventE wait=MQ_WAIT_NO, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.ProcessEvent(MqWaitOnEventE wait = MQ_WAIT_NO, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT) → C...
MkBufferC * GetBuffer()
C++: MkBufferC* ctx.GetBuffer() → C-API get the libmqmsgque::MqContextS::ctxbuf object
MqContextC * GetRoot()
C++: MqContextC* ctx.GetRoot() → C-API get the Root (toplevel initial context)
MK_STRN ToString() const
C++: MK_STRN ctx.ToString() → C-API String-Slot - returns the string representation of the inst...
void Exit(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: ctx.Exit(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(),...
void ProxyForward(MqContextC *targetCtx, MqDumpC *dump=NULL, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: sourceCtx.ProxyForward(MqContextC* targetCtx, MqDumpC* dump = NULL, MK_TIME_T timeout = MK_TIME...
void ProxyItem(MqContextC *targetCtx)
C++: sourceCtx.ProxyItem(MqContextC* targetCtx) → C-API Copy a single-data-item from the source...
MkBufferC * ReadNEXT()
C++: MkBufferC* ctx.ReadNEXT() → C-API get the next argument as native object …
MK_BNP ReadBinaryR()
C++: MK_BNP ctx.ReadBinaryR() → C-API read a MkBinaryR from the read-data-package …
std::string ReadStringR()
C++: std::string ctx.ReadStringR() → C-API read a MkStringR from the read-data-package …
MK_HDL ReadHDL()
C++: MK_HDL ctx.ReadHDL() → C-API read the handle from the read-data-package
MK_BNP ReadBIN()
C++: doc_mq_cc_ReadBIN → C-API generic function to read an libmkkernel::MK_BIN object from the r...
MK_BOL ReadBOL()
C++: doc_mq_cc_ReadBOL → C-API read a PRIMITIVE TYPE from the read-data-package …
MkBufferC * ReadBUF()
C++: MkBufferC* ctx.ReadBUF() → C-API get a temporary MkBufferC from the read-data-package …
MkBufferListC * ReadBFL()
C++: MkBufferListC* ctx.ReadBFL() → C-API get a temporary MkBufferListC from next list-item in ...
MkBufferListC * ReadALL(MkBufferListC *val_inout=NULL)
C++: MkBufferListC* ctx.ReadALL(MkBufferListC* val_inout = NULL) → C-API get a temporary MkBuff...
MkBufferListC * ReadLIST()
C++: MkBufferListC* ctx.ReadLIST() → C-API get all arguments as native list …
MK_I32 ReadI32()
C++: doc_mq_cc_ReadI32 → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_I64 ReadI64()
C++: doc_mq_cc_ReadI64 → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_LONG ReadLONG()
C++: MK_LONG ctx.ReadLONG() → C-API read the long native object from the read-data-package
MK_I16 ReadI16()
C++: doc_mq_cc_ReadI16 → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_FLT ReadFLT()
C++: doc_mq_cc_ReadFLT → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_DBL ReadDBL()
C++: doc_mq_cc_ReadDBL → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_STRN ReadSTR()
C++: doc_mq_cc_ReadSTR → C-API read a PRIMITIVE TYPE from the read-data-package …
MK_I8 ReadI8()
C++: doc_mq_cc_ReadI8 → C-API read a PRIMITIVE TYPE 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-p...
void ReadL_END()
C++: ctx.ReadL_END() → C-API finish to extract a list-items from the read-data-package....
void ReadT_START()
C++: ctx.ReadT_START() → C-API start to extract a longterm-transaction-item from the read-data-...
void ReadL_START(MkBufferC *buf=NULL)
C++: ctx.ReadL_START(MkBufferC* buf = NULL) → C-API start to extract a list-items from the read...
MK_BOOL ReadItemExists()
C++: MK_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 …
MkTypeE ReadGetNextType()
C++: MkTypeE ctx.ReadGetNextType() → C-API get the type (MkTypeE) of the next Item in the read-...
MK_NUM ReadGetNumItems()
C++: MK_NUM ctx.ReadGetNumItems() → C-API get the number of items left in the read-data-package...
MK_STRN RouteGetPath()
C++: MK_STRN ctx.RouteGetPath() → C-API return the absolut route-connection-string up to the cu...
MqContextC_A RouteResolve(MK_STRN ident, MK_NUM retnum=-1)
C++: MqContextC_A ctx.RouteResolve(MK_STRN ident, MK_NUM retnum = -1) → C-API return a list of ...
MkBufferListC * RouteGetTree()
C++: MkBufferListC* ctx.RouteGetTree() → C-API create an overview about all available routing-t...
void RouteCreate(MK_STRN route, MK_STRN service, MK_BOOL overwrite=false)
C++: ctx.RouteCreate(MK_STRN route, MK_STRN service, MK_BOOL overwrite = false) → C-API create/...
void RouteDelete(MK_STRN route, MK_STRN service, MK_BOOL overwrite=false)
C++: ctx.RouteDelete(MK_STRN route, MK_STRN service, MK_BOOL overwrite = false) → C-API delete ...
void RouteTraverse(MK_STRN service, MkBufferListC *args=NULL)
C++: ctx.RouteTraverse(MK_STRN service, MkBufferListC* args = NULL) → C-API traverse a tree dow...
void SendBOL(MK_BOL val)
C++: doc_mq_cc_SendBOL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendVL(MK_FST printfmt, va_list var_list)
C++: ctx.SendVL(MK_FST printfmt, va_list var_list) → C-API append a vararg string as va_list to...
void SendStringR(const std::string &val)
C++: ctx.SendStringR(const std::string& val) → C-API MqContextC - append a native PRIMITIVE T...
void SendBFL(const MkBufferListC *val)
C++: ctx.SendBFL(const MkBufferListC* val) → C-API append a MkBufferListC object to the send-da...
void SendBinaryR(MK_BNP val)
C++: ctx.SendBinaryR(MK_BNP val) → C-API append a MkBinaryR object to the send-data-package....
void SendBUS_FLAT(const MkBufferStreamC *val)
C++: ctx.SendBUS_FLAT(const MkBufferStreamC* val) → C-API append a MkBufferStreamC object to th...
void SendLONG(MK_LONG val)
C++: ctx.SendLONG(MK_LONG val) → C-API send the long native object to the send-data-package
void SendDBL(MK_DBL val)
C++: doc_mq_cc_SendDBL → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendI64(MK_I64 val)
C++: doc_mq_cc_SendI64 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendBIN(MK_BNP val)
C++: doc_mq_cc_SendBIN → C-API append a libmkkernel::MK_BIN object to the send-data-package....
void SendHDL(MK_HDL val)
C++: ctx.SendHDL(MK_HDL val) → C-API send the handle to the send-data-package
void SendL_FLAT(const MkBufferListC *val)
C++: ctx.SendL_FLAT(const MkBufferListC* val) → C-API append a MkBufferListC object as flat lis...
void SendI16(MK_I16 val)
C++: doc_mq_cc_SendI16 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendLTR(MQ_LTR transLId)
SendLTR
void SendFLT(MK_FLT val)
C++: doc_mq_cc_SendFLT → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendV(MK_FST printfmt,...)
C++: ctx.SendV(MK_FST printfmt, ... ) → C-API append a vararg string to the send-data-package o...
void SendBUF(const MkBufferC *val)
C++: ctx.SendBUF(const MkBufferC* val) → C-API append a MkBufferC object to the send-data-packa...
void SendI8(MK_I8 val)
C++: doc_mq_cc_SendI8 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-data...
void SendSTR(MK_STRN val)
C++: doc_mq_cc_SendSTR → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendI32(MK_I32 val)
C++: doc_mq_cc_SendI32 → C-API MqContextC - append a native PRIMITIVE TYPE value to the send-d...
void SendSTART()
C++: ctx.SendSTART() → C-API initialize the send-data-package. …
void 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,...
void 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 ...
void SendSYNC()
C++: ctx.SendSYNC() → C-API garantee that all pending asynchronous-service-calls are processed....
void 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_DEFAU...
void 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 - fin...
void 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,...
void SendL_END()
C++: ctx.SendL_END() → C-API finish to append an embedded body-list-item to the send-data-packa...
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-pack...
void SendT_END()
C++: ctx.SendT_END() → C-API closed a longterm-transaction-item …
MkBufferListC * Send(MK_STRN cstr,...)
C++: ctx.Send(MK_STRN cstr, ... ) → C-API user friendly replacement for the MqContextC_SendApi_...
Definition MqHigh_cc.cc:134
MkBufferListC * SendVA(MK_STRN cstr, MqTokenF const fCall, MK_PTR data, MqDataFreeF fFree, va_list ap)
MkBufferListC * Send(const std::string &str, IService *const service,...)
MkBufferListC * Send(const std::string &str, MqTokenCCB const callback,...)
MkBufferListC * Send(MK_STRN cstr, MqTokenCCB const callback,...)
C++: ctx.Send(MK_STRN cstr, ... ) → C-API user friendly replacement for the MqContextC_SendApi_...
MkBufferListC * Send(MK_STRN cstr, MqTokenICB const callback,...)
C++: ctx.Send(MK_STRN cstr, ... ) → C-API user friendly replacement for the MqContextC_SendApi_...
MkBufferListC * Send(MK_STRN cstr, IService *const service,...)
C++: ctx.Send(MK_STRN cstr, ... ) → C-API user friendly replacement for the MqContextC_SendApi_...
MkBufferListC * Send(const std::string &str, MqTokenICB const callback,...)
void SendRETURN_SUB()
C++: ctx.SendRETURN_SUB() → C-API return Sub-Data-Blocks required by MqSendEND_AND_SUB …
void SendERROR()
C++: ctx.SendERROR() → C-API send the data from the MkErrorC to the link target ....
void SendRETURN()
C++: ctx.SendRETURN() → C-API MqContextC - finish the send-data-block on the server and optiona...
MK_BOOL ServiceIsTransaction()
C++: MK_BOOL ctx.ServiceIsTransaction() → C-API check if the ongoing-service-call belongs to a ...
void ServiceProxyCtx(MQ_TOK token, MqContextC *target)
C++: ctx.ServiceProxyCtx(MQ_TOK token, MqContextC* target) → C-API same as MqServiceProxy but u...
MK_BOOL ServiceProxyCtxExists(MQ_TOK token, MqContextC *target)
C++: MK_BOOL ctx.ServiceProxyCtxExists(MQ_TOK token, MqContextC* target) → C-API check if servi...
void ServiceProxyRoundRobin(MQ_TOK token, MK_STRN ident)
C++: ctx.ServiceProxyRoundRobin(MQ_TOK token, MK_STRN ident) → C-API create a proxy-service usi...
void ServiceCreate(MQ_TOK token, MqServiceICB callback)
C++: ctx.ServiceCreate(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback) ...
void ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id=MQ_SLAVE_OTHER)
C++: ctx.ServiceProxy(MQ_TOK token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER) → C-API create a service t...
void ServiceStorage(MQ_TOK token)
C++: ctx.ServiceStorage(MQ_TOK token) → C-API setup a service listen on a MqContextC_ServiceApi...
MK_BOOL ServiceTokenExists(MQ_TOK token)
C++: MK_BOOL ctx.ServiceTokenExists(MQ_TOK token) → C-API check if the MqContextC_ServiceApi_Id...
void ServiceDelete(MQ_TOK token)
C++: ctx.ServiceDelete(MQ_TOK token) → C-API delete a service. …
MK_BOOL ServiceTokenCheck(MQ_TOK token)
C++: MK_BOOL ctx.ServiceTokenCheck(MQ_TOK token) → C-API in an ongoing-service-call check if th...
MQ_TOK ServiceTokenGet()
C++: MQ_TOK ctx.ServiceTokenGet() → C-API in an ongoing-service-call get the current MqContextC...
MK_STRN MQ_TOK
MqContextC - a char[4+1] or hex[8+1] string used to unique identify a service …
MK_BOOL SlaveCheck(MQ_SLAVE_ID id) const
C++: MK_BOOL ctx.SlaveCheck(MQ_SLAVE_ID id) → C-API check if slave-id is valid
MqContextC * SlaveGetProxy(MQ_SLAVE_ID id)
C++: MqContextC* ctx.SlaveGetProxy(MQ_SLAVE_ID id) → C-API on slave return the master and on ma...
void SlaveCreate(MQ_SLAVE_ID id, MqContextC *slave)
C++: ctx.SlaveCreate(MQ_SLAVE_ID id, MqContextC* slave) → C-API create a master/slave link betw...
MqContextC * SlaveGet(MQ_SLAVE_ID id)
C++: MqContextC* ctx.SlaveGet(MQ_SLAVE_ID id) → C-API get the slave-context from a master-conte...
void SlaveDelete(MQ_SLAVE_ID id)
C++: ctx.SlaveDelete(MQ_SLAVE_ID id) → C-API Delete a slave object from a master/slave link ide...
MqContextC * SlaveGetFilter()
C++: MqContextC* ctx.SlaveGetFilter() → C-API get the filter-ctx or the master-ctx …
MK_BOOL SlaveIs() const
C++: MK_BOOL ctx.SlaveIs() → C-API is the context a slave-context ? …
MqContextC * SlaveGetMaster()
C++: MqContextC* ctx.SlaveGetMaster() → C-API opposite function of MqSlaveGetFilter
void SlaveWorker(MQ_SLAVE_ID id, MK_STRN fct="WORKER", MkBufferListC *args=NULL)
C++: ctx.SlaveWorker(MQ_SLAVE_ID id, MK_STRN fct = "WORKER", MkBufferListC* args = NULL) → C-API ...
MK_I32 StorageErrCnt(MQ_LTR transLId)
C++: MK_I32 ctx.StorageErrCnt(MQ_LTR transLId) → C-API increment and return the database row-er...
void StorageClose()
C++: ctx.StorageClose() → C-API close the storage. …
void StorageOpen(MK_STRN storageFile)
C++: ctx.StorageOpen(MK_STRN storageFile) → C-API switch to a file-based-transaction-database …
MQ_LTR StorageDelete(MQ_LTR *transLIdP_inout=NULL)
C++: MQ_LTR ctx.StorageDelete(MQ_LTR *transLIdP_inout = NULL) → C-API delete the storage-row id...
std::tuple< MqContextC *, MQ_LTR > StorageResolve()
C++: {otherCtxP:MqContextC* otherLIdP:MQ_LTR} ctx.StorageResolve() → C-API extract the context-...
MQ_LTR StorageExport()
C++: MQ_LTR ctx.StorageExport() → C-API export the read-data-package into the STORAGE …
void StorageDecrRef(MQ_LTR transLId)
C++: ctx.StorageDecrRef(MQ_LTR transLId) → C-API decrease the internal refCount lock of the dat...
MQ_LTR StorageCount()
C++: MQ_LTR ctx.StorageCount() → C-API count the number of storage-rows …
MQ_LTR StorageImport(MQ_LTR *transLIdP_inout=NULL)
C++: MQ_LTR ctx.StorageImport(MQ_LTR *transLIdP_inout = NULL) → C-API import the storage-packag...
void StorageLog(MK_STRN callfunc=__builtin_FUNCTION())
C++: ctx.StorageLog(MK_STRN callfunc = __builtin_FUNCTION()) → C-API log the storage the status...
void StorageIncrRef(MQ_LTR transLId)
C++: ctx.StorageIncrRef(MQ_LTR transLId) → C-API increase the internal refCount lock of the dat...
static MK_OBJ CTOR(MqContextC *tmpl=NULL)
C++: [constructor,static] MqContextC* MqContextC::Create(MqContextC* tmpl = NULL) → C-API create...
static MqContextC * Create(MqContextC *tmpl=NULL)
C++: [constructor,static] MqContextC* MqContextC::Create(MqContextC* tmpl = NULL) → C-API create...
MqIdentE
identify the application using prefix (default) or factory …
MqWaitOnEventE
wait for an event? …
MqStatusIsEF
Information about how the context was created.
MqStartE
User preferences on HOWTO start a new entity.
@ MQ_WAIT_NO
Check for one event but do not wait …
@ MQ_SLAVE_OTHER
internal: on the master-ctx get the slave-ctx and on the slave-ctx get the master-ctx
MK_NUM MQ_SLAVE_ID
a slave identiver
int MQ_LTR
32bit longterm transaction token because PHP-32 does NOT support long long
std::pair< MK_SIZE, MK_BINN > MK_BNP
namespace for the CcMqMsgque "C++"-API
PUBLIC data structure for the ccmqmsgque-specific-data → C-API: libmqmsgque::MqContextS
infrastructur to use the CcMqMsgque specific callback …
Definition MqCall_cc.hh:19
PUBLIC data structure for the ccmqmsgque-specific-data