theLink 10.0
Loading...
Searching...
No Matches
MqContextC_cc.hh
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11#pragma once
12
13#include <list>
14
15namespace ccmqmsgque {
16
19 typedef struct {
23
26 class MqContextC : public MkObjectC {
27
28 // factory constructor need access to hdl
29 template<class T> friend class MqFactoryCT;
30 friend class MqMsgque;
31 friend class MqServiceCallbackC;
32
33 static MK_TYP mqtype;
34
35/* LABEL-START */
36
39
40 public:
41 static thread_local MqContextC MK_NULL_REF;
42
43 private:
44
46 return (hdl != NULL ? static_cast<MqContextC*>((*MqContextC_X2obj(hdl)).self) : &MK_NULL_REF);
47 }
48
49 #ifdef MqContextC_selfCreate_overload
50 static MK_PTR MqContextC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
51 #else
53 return new MqContextC(obj);
54 }
55 #endif
56
58 delete static_cast<MqContextC*>(self);
59 }
60
62 MqContextC* selfO = static_cast<MqContextC*>(self);
63 selfO->atomUnlink();
64 }
65
67
68
72
73#ifndef META_IS_MkObjectC
74 MqContextC (MK_OBJ obj) : MkObjectC(obj) {};
75#endif
76
77 public:
78
79#ifndef META_IS_MkObjectC
81#endif
82
87
89 MQ_CTX getCTX() const {
90 MQ_CTX ret = reinterpret_cast<MQ_CTX>(hdl);
91 if (unlikely(ret == NULL)) InstHdlIsNullError();
92 return ret;
93 };
94
97 return reinterpret_cast<MQ_CTX>(hdl);
98 };
99
101 MQ_CTXN getCTXN() const {
102 MQ_CTXN ret = reinterpret_cast<MQ_CTXN>(hdl);
103 if (unlikely(ret == NULL)) InstHdlIsNullError();
104 return ret;
105 };
106
109 return reinterpret_cast<MQ_CTXN>(hdl);
110 };
111
113 static MQ_CTX getCTX(MqContextC* clsHdl) {
114 MQ_CTX ret = clsHdl ? reinterpret_cast<MQ_CTX>(clsHdl->hdl) : NULL;
115 if (unlikely(ret == NULL)) ClassHdlIsNullError(MqContextC);
116 return ret;
117 };
118
121 return clsHdl ? reinterpret_cast<MQ_CTX>(clsHdl->hdl) : NULL;
122 };
123
125 static MQ_CTXN getCTXN(const MqContextC* clsHdl) {
126 MQ_CTXN ret = clsHdl ? reinterpret_cast<MQ_CTXN>(clsHdl->hdl) : NULL;
127 if (unlikely(ret == NULL)) ClassHdlIsNullError(MqContextC);
128 return ret;
129 };
130
132 static MQ_CTXN getCTXN__null_allow(const MqContextC* clsHdl) {
133 return clsHdl ? reinterpret_cast<MQ_CTXN>(clsHdl->hdl) : NULL;
134 };
135
137 static MQ_CTX getCTX(const MqContextC& clsHdl) {
138 return clsHdl.getCTX();
139 };
140
142 static MQ_CTX getCTX__null_allow(const MqContextC& clsHdl) {
143 return clsHdl.getCTX__null_allow();
144 };
145
147 static MQ_CTXN getCTXN(const MqContextC& clsHdl) {
148 return clsHdl.getCTXN();
149 };
150
152 static MQ_CTXN getCTXN__null_allow(const MqContextC& clsHdl) {
153 return clsHdl.getCTXN__null_allow();
154 };
155
157 bool Check() const {
158 return (hdl && MqCtxCheck(hdl));
159 };
160
161/* LABEL-END */
162
163 public:
164 void Init (MK_STRN caller = __builtin_FUNCTION());
165
166 typedef void (MqContextC::*MqTokenICB) ();
167
173
174 typedef void (*MqTokenCCB) (MqContextC*);
175
181
182 operator MqContextC*() { return this; };
183
184 // BEGIN-MqContextC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
185
189
190 public:
191
192 // doc-key: MqContextC,MqContextC-Class-Export,sc_,public
193
195 static MqContextC* HandleResolve (MK_HDL netHdl);
196
197 // doc-key: MqContextC,MqContextC-Class-Export,om_,public
198
199 // skip class-overload: MK_HDL HandleGet ()
200
202 // MqContextC_Class_CC_API
203
207
208 public:
209
210 // doc-key: MqContextC,MqContextC-Class-Introspection,oc_,public
211
213 MqContextC* Next ();
214
216 MqContextC* Prev ();
217
218 // doc-key: MqContextC,MqContextC-Class-Introspection,sc_,public
219
221 static MqContextC* Instances ();
222
224 // MqContextC_Class_CC_API
225
229
230 public:
231
232 // doc-key: MqContextC,MqContextC-Class-Misc,sc_,public
233
235 static MqContextC* GetNull ();
236
238 // MqContextC_Class_CC_API
239
243
244 public:
245
246 // doc-key: MqContextC,MqContextC-ClassApi-Class,oc_,public
247
249 MqFactoryC* ClassFactoryGet () const;
250
251 // doc-key: MqContextC,MqContextC-ClassApi-Class,om_,public
252
254 void ClassFactorySet (MqFactoryC* item);
255
257 void ClassFactorySet (const MqFactoryC& item);
258
260 MK_STRN ClassIdentGet () const;
261
263 void ClassIdentSet (MK_STRN ident);
264
266 void ClassIdentSet (const std::string& ident);
267
270
272 // MqContextC_ClassApi_Class_CC_API
273
277
278 public:
279
280 // doc-key: MqContextC,MqContextC-ConfigApi-Get,oco,public
281
284
285 // doc-key: MqContextC,MqContextC-ConfigApi-Get,om_,public
286
289
292
295
297 MK_STRN ConfigGetIoUds () const;
298
301
304
307
309 MK_STRN ConfigGetName () const;
310
312 MK_I32 ConfigGetPkgsize () const;
313
315 MK_STRN ConfigGetPostfix () const;
316
318 MK_STRN ConfigGetPrefix () const;
319
322
325
327 MK_STRN ConfigGetStorage () const;
328
331
333 void ConfigSetConfigFile (MK_STRN filename);
334
336 void ConfigSetConfigFile (const std::string& filename);
337
338 // doc-key: MqContextC,MqContextC-ConfigApi-Get,omo,public
339
341 std::tuple<MK_STRN,MK_STRN,MK_STRN,MK_STRN> ConfigGetIoTcp ();
342
344 // MqContextC_ConfigApi_Get_CC_API
345
349
350 public:
351
352 // doc-key: MqContextC,MqContextC-ConfigApi-Interface,om_,public
353
355 void ConfigSetBgError (MqBgErrorCCB callback = NULL);
356
358 void ConfigSetBgError (MqBgErrorICB callback = NULL);
359
361 void ConfigSetBgError (MqBgErrorIF* callback = NULL);
362
364 void ConfigSetEvent (MqEventCCB callback = NULL);
365
367 void ConfigSetEvent (MqEventICB callback = NULL);
368
370 void ConfigSetEvent (MqEventIF* callback = NULL);
371
373 void ConfigSetServerCleanup (MqServerCleanupCCB callback = NULL);
374
376 void ConfigSetServerCleanup (MqServerCleanupICB callback = NULL);
377
379 void ConfigSetServerCleanup (MqServerCleanupIF* callback = NULL);
380
382 void ConfigSetServerSetup (MqServerSetupCCB callback = NULL);
383
385 void ConfigSetServerSetup (MqServerSetupICB callback = NULL);
386
388 void ConfigSetServerSetup (MqServerSetupIF* callback = NULL);
389
391 // MqContextC_ConfigApi_Interface_CC_API
392
396
397 public:
398
399 // doc-key: MqContextC,MqContextC-ConfigApi-Misc,om_,public
400
402 void ConfigReset ();
403
405 // MqContextC_ConfigApi_Misc_CC_API
406
410
411 public:
412
413 // doc-key: MqContextC,MqContextC-ConfigApi-Set,om_,public
414
417
419 void ConfigSetAllDebug (MK_I32 data);
420
422 void ConfigSetBuffersize (MK_I32 data);
423
425 void ConfigSetDaemon (MK_STRN pidfile);
426
428 void ConfigSetDaemon (const std::string& pidfile);
429
431 void ConfigSetIdentFrom (MqIdentE data);
432
434 void ConfigSetIgnoreExit (MK_BOOL data);
435
438
440 void ConfigSetIoTcp (MK_STRN host = NULL, MK_STRN port = NULL, MK_STRN myhost = NULL, MK_STRN myport = NULL);
441
443 void ConfigSetIoTcp (MkBufferListC* vals);
444
446 void ConfigSetIoTcp (const MkBufferListC& vals);
447
449 void ConfigSetIoUds (MK_STRN file);
450
452 void ConfigSetIoUds (const std::string& file);
453
455 void ConfigSetIsServer (MK_BOOL data);
456
458 void ConfigSetIsString (MK_BOOL data);
459
461 void ConfigSetName (MK_STRN data);
462
464 void ConfigSetName (const std::string& data);
465
467 void ConfigSetPkgsize (MK_I32 data);
468
470 void ConfigSetPostfix (MK_STRN data);
471
473 void ConfigSetPostfix (const std::string& data);
474
476 void ConfigSetPrefix (MK_STRN data);
477
479 void ConfigSetPrefix (const std::string& data);
480
482 void ConfigSetStartAs (MqStartE data);
483
486
488 void ConfigSetStartAsString (const std::string& data);
489
491 void ConfigSetStorage (MK_STRN data);
492
494 void ConfigSetStorage (const std::string& data);
495
497 void ConfigSetTimeout (MK_TIME_T data);
498
500 // MqContextC_ConfigApi_Set_CC_API
501
505
506 public:
507
508 // doc-key: MqContextC,MqContextC-EnvApi-Env,om_,public
509
511 void EnvProtect ();
512
514 void EnvRestore ();
515
517 // MqContextC_EnvApi_Env_CC_API
518
522
523 public:
524
525 // doc-key: MqContextC,MqContextC-ErrorApi-Error,oc_,public
526
528 MkErrorC* ErrorFORMAT () const;
529
530 // doc-key: MqContextC,MqContextC-ErrorApi-Error,om_,public
531
533 MkErrorE ErrorCopy (const MqContextC* sourceCtx) const;
534
536 MkErrorE ErrorCopy (const MqContextC& sourceCtx) const;
537
539 MkErrorE ErrorMove (const MqContextC* sourceCtx) const;
540
542 MkErrorE ErrorMove (const MqContextC& sourceCtx) const;
543
545 // MqContextC_ErrorApi_Error_CC_API
546
550
551 public:
552
553 // doc-key: MqContextC,MqContextC-HighApi-High,om_,public
554
556 void SendVL2 (MK_STRN cstr, va_list var_list);
557
559 void SendVL2 (const std::string& cstr, va_list var_list);
560
562 // MqContextC_HighApi_High_CC_API
563
567
568 public:
569
570 // doc-key: MqContextC,MqContextC-LinkApi-Link,oc_,public
571
574
575 // doc-key: MqContextC,MqContextC-LinkApi-Link,om_,public
576
578 void LinkConnect ();
579
581 void LinkCreate (MkBufferListC* args = NULL);
582
584 void LinkCreate (const MkBufferListC& args);
585
587 void LinkCreateChild (MqContextC* parent, MkBufferListC* args = NULL);
588
590 void LinkCreateChild (const MqContextC& parent, const MkBufferListC& args);
591
593 void LinkDelete ();
594
597
600
603
606
608 void LinkShutdown ();
609
611 // MqContextC_LinkApi_Link_CC_API
612
616
617 public:
618
619 // doc-key: MqContextC,MqContextC-LogApi-Log,om_,public
620
621 // skip class-overload: void Log (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
622
623 // skip class-overload: void Log (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
624
626 void LogConfig (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
627
629 void LogConfig (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
630
632 void LogEnv (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
633
635 void LogEnv (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
636
638 void LogLink (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
639
641 void LogLink (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
642
644 void LogSetup (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
645
647 void LogSetup (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
648
650 void LogShort (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) const;
651
653 void LogShort (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0, MK_STRN label = NULL) const;
654
656 void LogType (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
657
659 void LogType (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const;
660
662 MK_STRN LogParentOrChild () const;
663
665 MK_STRN LogServerOrClient () const;
666
668 // MqContextC_LogApi_Log_CC_API
669
673
674 public:
675
676 // doc-key: MqContextC,MqContextC-MiscApi-Misc,oc_,public
677
680
683
684 // doc-key: MqContextC,MqContextC-MiscApi-Misc,om_,public
685
686 // skip class-overload: MK_STRN ToString () const
687
689 MK_I32 Exit (MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE());
690
693
695 // MqContextC_MiscApi_Misc_CC_API
696
700
701 public:
702
703 // doc-key: MqContextC,MqContextC-ProxyApi-Proxy,om_,public
704
706 void ProxyForward (MqContextC* targetCtx, MqDumpC* dump = NULL, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
707
709 void ProxyForward (const MqContextC& targetCtx, const MqDumpC& dump, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
710
712 void ProxyItem (MqContextC* targetCtx);
713
715 void ProxyItem (const MqContextC& targetCtx);
716
718 // MqContextC_ProxyApi_Proxy_CC_API
719
723
724 public:
725
726 // doc-key: MqContextC,MqContextC-ReadApi-Atom,oci,public
727
729 MkBufferListC* ReadALL (MkBufferListC* val_inout = NULL);
730
731 // doc-key: MqContextC,MqContextC-ReadApi-Atom,oco,public
732
735
737 MkBufferC* ReadBUF ();
738
739 // doc-key: MqContextC,MqContextC-ReadApi-Atom,omo,public
740
742 MK_BNP ReadBIN ();
743
745 MK_BOL ReadBOL ();
746
749
751 MK_DBL ReadDBL ();
752
754 MK_FLT ReadFLT ();
755
757 MK_HDL ReadHDL ();
758
760 MK_I16 ReadI16 ();
761
763 MK_I32 ReadI32 ();
764
766 MK_I64 ReadI64 ();
767
769 MK_I8 ReadI8 ();
770
773
775 MK_LONG ReadLONG ();
776
779
781 MK_STRN ReadSTR ();
782
784 std::string ReadStringR ();
785
787 // MqContextC_ReadApi_Atom_CC_API
788
792
793 public:
794
795 // doc-key: MqContextC,MqContextC-ReadApi-Block,om_,public
796
798 void ReadL_END ();
799
801 void ReadL_START (MkBufferC* buf = NULL);
802
804 void ReadL_START (const MkBufferC& buf);
805
807 void ReadT_END ();
808
810 void ReadT_START ();
811
813 // MqContextC_ReadApi_Block_CC_API
814
818
819 public:
820
821 // doc-key: MqContextC,MqContextC-ReadApi-Misc,om_,public
822
824 void ReadDbg ();
825
828
831
834
836 void ReadUndo ();
837
839 // MqContextC_ReadApi_Misc_CC_API
840
844
845 public:
846
847 // doc-key: MqContextC,MqContextC-RouteApi-Route,oco,public
848
851
852 // doc-key: MqContextC,MqContextC-RouteApi-Route,om_,public
853
855 void RouteCreate (MK_STRN route, MK_STRN service, MK_BOOL overwrite = false);
856
858 void RouteCreate (const std::string& route, const std::string& service, MK_BOOL overwrite = false);
859
861 void RouteDelete (MK_STRN route, MK_STRN service, MK_BOOL overwrite = false);
862
864 void RouteDelete (const std::string& route, const std::string& service, MK_BOOL overwrite = false);
865
867 MqContextC_A RouteResolve (MK_STRN ident, MK_NUM retnum = -1);
868
870 MqContextC_A RouteResolve (const std::string& ident, MK_NUM retnum = -1);
871
873 void RouteTraverse (MK_STRN service, MkBufferListC* args = NULL);
874
876 void RouteTraverse (MK_STRN service, const MkBufferListC& args);
877
879 void RouteTraverse (const std::string& service, MkBufferListC* args = NULL);
880
882 void RouteTraverse (const std::string& service, const MkBufferListC& args);
883
884 // doc-key: MqContextC,MqContextC-RouteApi-Route,omo,public
885
888
890 // MqContextC_RouteApi_Route_CC_API
891
895
896 public:
897
898 // doc-key: MqContextC,MqContextC-SendApi-Atom,om_,public
899
901 void SendBFL (const MkBufferListC* val);
902
904 void SendBFL (const MkBufferListC& val);
905
907 void SendBIN (MK_BNP val);
908
910 void SendBOL (MK_BOL val);
911
913 void SendBUF (const MkBufferC* val);
914
916 void SendBUF (const MkBufferC& val);
917
919 void SendBUS_FLAT (const MkBufferStreamC* val);
920
922 void SendBUS_FLAT (const MkBufferStreamC& val);
923
925 void SendBinaryR (MK_BNP val);
926
928 void SendDBL (MK_DBL val);
929
931 void SendFLT (MK_FLT val);
932
934 void SendHDL (MK_HDL val);
935
937 void SendI16 (MK_I16 val);
938
940 void SendI32 (MK_I32 val);
941
943 void SendI64 (MK_I64 val);
944
946 void SendI8 (MK_I8 val);
947
949 void SendLONG (MK_LONG val);
950
952 void SendLTR (MQ_LTR transLId);
953
955 void SendL_FLAT (const MkBufferListC* val);
956
958 void SendL_FLAT (const MkBufferListC& val);
959
961 void SendSTR (MK_STRN val);
962
964 void SendSTR (const std::string& val);
965
967 void SendStringR (const std::string& val);
968
970 void SendV (MK_FST printfmt, ... ) __attribute__ ((format (printf, 2, 3)));
971
973 void SendVL (MK_FST printfmt, va_list var_list);
974
976 // MqContextC_SendApi_Atom_CC_API
977
981
982 public:
983
984 // doc-key: MqContextC,MqContextC-SendApi-Basics,om_,public
985
987 void SendEND (MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
988
990 void SendEND (const std::string& token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
991
993 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
994
996 void SendEND_AND_CALLBACK (const std::string& token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
997
999 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1000
1002 void SendEND_AND_CALLBACK (const std::string& token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1003
1005 void SendEND_AND_CALLBACK (MQ_TOK token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1006
1008 void SendEND_AND_CALLBACK (const std::string& token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1009
1011 void SendEND_AND_SUB (MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1012
1014 void SendEND_AND_SUB (const std::string& token, MqServiceCCB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1015
1017 void SendEND_AND_SUB (MQ_TOK token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1018
1020 void SendEND_AND_SUB (const std::string& token, MqServiceICB callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1021
1023 void SendEND_AND_SUB (MQ_TOK token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1024
1026 void SendEND_AND_SUB (const std::string& token, MqServiceIF* callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1027
1029 void SendEND_AND_TRANSACTION (MQ_TOK token, MQ_TOK callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1030
1032 void SendEND_AND_TRANSACTION (const std::string& token, const std::string& callback, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1033
1035 void SendEND_AND_WAIT (MQ_TOK token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1036
1038 void SendEND_AND_WAIT (const std::string& token, MK_TIME_T timeout = MK_TIMEOUT_DEFAULT);
1039
1041 void SendSTART ();
1042
1044 void SendSYNC ();
1045
1047 // MqContextC_SendApi_Basics_CC_API
1048
1052
1053 public:
1054
1055 // doc-key: MqContextC,MqContextC-SendApi-Block,om_,public
1056
1058 void SendL_END ();
1059
1061 void SendL_START ();
1062
1064 void SendT_END ();
1065
1067 void SendT_START ();
1068
1070 // MqContextC_SendApi_Block_CC_API
1071
1075
1076 public:
1077
1078 // doc-key: MqContextC,MqContextC-SendApi-Return,om_,public
1079
1081 void SendERROR ();
1082
1084 void SendRETURN ();
1085
1087 void SendRETURN_SUB ();
1088
1090 // MqContextC_SendApi_Return_CC_API
1091
1095
1096 public:
1097
1098 // doc-key: MqContextC,MqContextC-ServiceApi-Service,om_,public
1099
1101 void ServiceCreate (MQ_TOK token, MqServiceCCB callback);
1102
1104 void ServiceCreate (const std::string& token, MqServiceCCB callback);
1105
1107 void ServiceCreate (MQ_TOK token, MqServiceICB callback);
1108
1110 void ServiceCreate (const std::string& token, MqServiceICB callback);
1111
1113 void ServiceCreate (MQ_TOK token, MqServiceIF* callback);
1114
1116 void ServiceCreate (const std::string& token, MqServiceIF* callback);
1117
1119 void ServiceDelete (MQ_TOK token);
1120
1122 void ServiceDelete (const std::string& token);
1123
1126
1128 void ServiceProxy (MQ_TOK token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER);
1129
1131 void ServiceProxy (const std::string& token, MQ_SLAVE_ID id = MQ_SLAVE_OTHER);
1132
1134 void ServiceProxyCtx (MQ_TOK token, MqContextC* target);
1135
1137 void ServiceProxyCtx (MQ_TOK token, const MqContextC& target);
1138
1140 void ServiceProxyCtx (const std::string& token, MqContextC* target);
1141
1143 void ServiceProxyCtx (const std::string& token, const MqContextC& target);
1144
1147
1149 MK_BOOL ServiceProxyCtxExists (MQ_TOK token, const MqContextC& target);
1150
1152 MK_BOOL ServiceProxyCtxExists (const std::string& token, MqContextC* target);
1153
1155 MK_BOOL ServiceProxyCtxExists (const std::string& token, const MqContextC& target);
1156
1158 void ServiceProxyRoundRobin (MQ_TOK token, MK_STRN ident);
1159
1161 void ServiceProxyRoundRobin (const std::string& token, const std::string& ident);
1162
1164 void ServiceStorage (MQ_TOK token);
1165
1167 void ServiceStorage (const std::string& token);
1168
1171
1173 MK_BOOL ServiceTokenCheck (const std::string& token);
1174
1177
1179 MK_BOOL ServiceTokenExists (const std::string& token);
1180
1183
1185 // MqContextC_ServiceApi_Service_CC_API
1186
1190
1191 public:
1192
1193 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,oc_,public
1194
1197
1198 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,oco,public
1199
1202
1205
1208
1209 // doc-key: MqContextC,MqContextC-SlaveApi-Slave,om_,public
1210
1212 MK_BOOL SlaveCheck (MQ_SLAVE_ID id) const;
1213
1215 void SlaveCreate (MQ_SLAVE_ID id, MqContextC* slave);
1216
1218 void SlaveCreate (MQ_SLAVE_ID id, const MqContextC& slave);
1219
1221 void SlaveDelete (MQ_SLAVE_ID id);
1222
1224 MK_BOOL SlaveIs () const;
1225
1227 void SlaveWorker (MQ_SLAVE_ID id, MK_STRN fct = "WORKER", MkBufferListC* args = NULL);
1228
1230 // MqContextC_SlaveApi_Slave_CC_API
1231
1235
1236 public:
1237
1238 // doc-key: MqContextC,MqContextC-StorageApi-Storage,oci,public
1239
1241 MQ_LTR StorageDelete (MQ_LTR *transLIdP_inout = 0);
1242
1244 MQ_LTR StorageImport (MQ_LTR *transLIdP_inout = 0);
1245
1246 // doc-key: MqContextC,MqContextC-StorageApi-Storage,om_,public
1247
1249 void StorageClose ();
1250
1252 void StorageDecrRef (MQ_LTR transLId);
1253
1255 void StorageIncrRef (MQ_LTR transLId);
1256
1258 void StorageLog (MK_STRN callfunc = __builtin_FUNCTION());
1259
1261 void StorageOpen (MK_STRN storageFile);
1262
1264 void StorageOpen (const std::string& storageFile);
1265
1266 // doc-key: MqContextC,MqContextC-StorageApi-Storage,omo,public
1267
1270
1272 MK_I32 StorageErrCnt (MQ_LTR transLId);
1273
1276
1278 std::tuple<MqContextC*,MQ_LTR> StorageResolve ();
1279
1281 // MqContextC_StorageApi_Storage_CC_API
1282
1286
1287 private:
1288
1289 // doc-key: MqContextC,MqContextC-TOR,sCc,private
1290
1292 static MK_OBJ CTOR (MqContextC* tmpl = NULL);
1293
1294 public:
1295
1296 // doc-key: MqContextC,MqContextC-TOR,sCc,public
1297
1299 static MqContextC* Create (MqContextC* tmpl = NULL);
1300
1302 MqContextC (MqContextC* tmpl = NULL) : MkObjectC(CTOR(tmpl)) {};
1303
1305 // MqContextC_TOR_CC_API
1306
1307 // END-MqContextC - created by 'cc_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
1308
1309 private:
1311 static inline MK_OBJ CTOR (MK_TYP const typ, MqContextC* tmpl = NULL);
1312
1313 public:
1314
1320 inline bool isParent() {return (MQ_IS_PARENT (reinterpret_cast<MQ_CTX>(hdl)));}
1321 inline bool isChild() {return (MQ_IS_CHILD (reinterpret_cast<MQ_CTX>(hdl)));}
1322 inline bool isMaster() {return (MQ_IS_MASTER (reinterpret_cast<MQ_CTX>(hdl)));}
1323 inline bool isSlave() {return (MQ_IS_SLAVE (reinterpret_cast<MQ_CTX>(hdl)));}
1325
1327
1330 public:
1331
1333 //void LinkCreate (const MkBufferListC& argv);
1334
1336 //void LinkCreateChild (const MqContextC& parent, const MkBufferListC& argv);
1337
1338 // following methods are added "on-demand"
1339 void LinkCheckOptionI32 (MK_STRN opt, MK_I32 *val);
1340
1342
1345
1346 private:
1347
1348 MkBufferListC* SendVA ( MK_STRN cstr, MqTokenF const fCall, MK_PTR data, MqDataFreeF fFree, va_list ap);
1349
1350 public:
1351
1354 MkBufferListC* Send (MK_STRN cstr, ...);
1355 MkBufferListC* Send (const std::string& str, ...);
1356
1359 MkBufferListC* Send (MK_STRN cstr, MqTokenICB const callback, ...);
1360 MkBufferListC* Send (const std::string& str, MqTokenICB const callback, ...);
1361
1364 MkBufferListC* Send (MK_STRN cstr, MqTokenCCB const callback, ...);
1365 MkBufferListC* Send (const std::string& str, MqTokenCCB const callback, ...);
1366
1369 MkBufferListC* Send (MK_STRN cstr, MqServiceIF * const service, ...);
1370 MkBufferListC* Send (const std::string& str, MqServiceIF * const service, ...);
1371
1373
1376
1377 public:
1378
1380 inline void SlaveWorker (MK_NUM id, MK_STRN factory, const MkBufferListC& args);
1381
1383
1384 protected:
1387 MqContextC (MK_TYP const typ, MqContextC* tmpl = NULL) : MkObjectC(CTOR(typ,tmpl)) {};
1388
1390 }; // class
1391} // namespace
implements the ccmqmsgque API object: ConfigSetBgError
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:24
implements the ccmqmsgque API object: ConfigSetEvent
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 …
implements the ccmqmsgque API object: ConfigSetServerCleanup
implements the ccmqmsgque API object: ConfigSetServerSetup
Callback for a Service.
#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_ARGS MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
#define MK_RT_CALL
#define MK_RT_ARGS
MQ_CTX getCTX() const
return the LibMsgqueObject from current MqContextC instance
static void MqContextC_selfUnlink(MK_RT_ARGS MK_PTR self, MK_PTR env)
void(MqContextC::*) MqTokenICB()
instance-callback
static MQ_CTXN getCTXN(const MqContextC *clsHdl)
(const) return LibMsgqueObject from current MqContextC pointer
MQ_CTXN getCTXN__null_allow() const
(const) return the LibMsgqueObject from current MqContextC instance
static MQ_CTX getCTX__null_allow(MqContextC *clsHdl)
return LibMsgqueObject from current MqContextC pointer
MQ_CTX getCTX__null_allow() const
return the LibMsgqueObject from current MqContextC instance
static MqContextC * MqContextC_GetSelf(MQ_CTX hdl)
static void MqContextC_selfDelete(MK_RT_ARGS MK_PTR self, MK_PTR env)
static MQ_CTXN getCTXN__null_allow(const MqContextC &clsHdl)
(const) return LibMsgqueObject from current MqContextC reference
static MQ_CTXN getCTXN__null_allow(const MqContextC *clsHdl)
(const) return LibMsgqueObject from current MqContextC pointer
static MQ_CTX getCTX__null_allow(const MqContextC &clsHdl)
return LibMsgqueObject from current MqContextC reference
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)
bool Check() const
check if pointer is still valid
MQ_CTXN getCTXN() const
(const) return the LibMsgqueObject from current MqContextC instance
static MQ_CTXN getCTXN(const MqContextC &clsHdl)
(const) return LibMsgqueObject from current MqContextC reference
static MqContextC * MqContextC_ObjNew(MK_RT_ARGS MQ_CTX hdl)
return MqContextC from LibMsgqueObject
static MK_PTR MqContextC_selfCreate(MK_RT_ARGS MK_OBJ obj, MK_PTR const env)
static MQ_CTX getCTX(const MqContextC &clsHdl)
return LibMsgqueObject from current MqContextC reference
static MQ_CTX getCTX(MqContextC *clsHdl)
return LibMsgqueObject from current MqContextC pointer
static MqContextC * MqContextC_ObjCreate(MK_RT_ARGS MQ_CTX hdl)
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...
static 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::dispPostfix
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::dispPrefix
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(MqServerCleanupCCB callback=NULL)
C++: ctx.ConfigSetServerCleanup(MqServerCleanupICB MqServerCleanupCCB MqServerCleanupIF* callback = ...
void ConfigSetServerSetup(MqServerSetupCCB callback=NULL)
C++: ctx.ConfigSetServerSetup(MqServerSetupICB MqServerSetupCCB MqServerSetupIF* callback = NULL) →...
void ConfigSetBgError(MqBgErrorCCB callback=NULL)
C++: ctx.ConfigSetBgError(MqBgErrorICB MqBgErrorCCB MqBgErrorIF* callback = NULL) → C-API set t...
void ConfigSetEvent(MqEventCCB callback=NULL)
C++: ctx.ConfigSetEvent(MqEventICB MqEventCCB MqEventIF* callback = NULL) → C-API set the libmq...
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 LogType(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogType(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNC...
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 LogEnv(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
C++: ctx.LogEnv(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCT...
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_I32 Exit(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: MK_I32 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 SendEND_AND_SUB(MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.SendEND_AND_SUB(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback,...
void SendEND_AND_CALLBACK(MQ_TOK token, MqServiceCCB callback, MK_TIME_T timeout=MK_TIMEOUT_DEFAULT)
C++: ctx.SendEND_AND_CALLBACK(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* callback,...
void SendSTART()
C++: ctx.SendSTART() → C-API initialize the send-data-package. …
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 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:131
MkBufferListC * SendVA(MK_STRN cstr, MqTokenF const fCall, MK_PTR data, MqDataFreeF fFree, va_list ap)
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(const std::string &str, MqServiceIF *const service,...)
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, MqServiceIF *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 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...
void ServiceCreate(MQ_TOK token, MqServiceCCB callback)
C++: ctx.ServiceCreate(MQ_TOK token, MqServiceICB MqServiceCCB MqServiceIF* cal...
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 …
std::tuple< MqContextC *, MQ_LTR > StorageResolve()
C++: {otherCtxP:MqContextC* otherLIdP:MQ_LTR} ctx.StorageResolve() → C-API extract the context-...
MQ_LTR StorageDelete(MQ_LTR *transLIdP_inout=0)
C++: MQ_LTR ctx.StorageDelete(MQ_LTR *transLIdP_inout = 0) → C-API delete the storage-row ident...
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=0)
C++: MQ_LTR ctx.StorageImport(MQ_LTR *transLIdP_inout = 0) → C-API import the storage-package i...
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:18
PUBLIC data structure for the ccmqmsgque-specific-data