MqContextC - the class known as ctx or context is the application-handle of the application-server and also the main data-handle … More...
Topics | |
MqContextC_Class_CC_API | |
MqContextC - define the class … | |
MqContextC_TOR_CC_API | |
MqContextC - various functions to create, initialize and destroy a context … | |
MqContextC_Config_CC_API | |
MqContextC - various functions to config a context … | |
MqContextC_Link_CC_API | |
MqContextC - setup and manage a client-server-link … | |
MqContextC_SlaveApi_Slave_CC_API | |
MqContextC - create and manage a slave context … | |
MqContextC_SendApi_CC_API | |
MqContextC - construct an outgoing send-data-package … | |
MqContextC_ReadApi_CC_API | |
MqContextC - extract data from an incoming read-data-package … | |
MqContextC_Proxy_CC_API | |
MqContextC - copy data from the read-data-package of the sourceCtx to the send-data-package of the targetCtx | |
MqContextC_Route_CC_API | |
MqContextC - setup and manage a routing-link … | |
MqContextC_Service_CC_API | |
MqContextC - create and manage a service … | |
MqContextC_StorageApi_CC_API | |
MqContextC - setup and manage a storage used to persist data-packages … | |
MqContextC_High_CC_API | |
MqContextC - User friendly replacement for the MqContextC_SendApi_C_API and the MqContextC_ReadApi_C_API … | |
MqContextC_Env_CC_API | |
MqContextC - protect and restore the service-environment … | |
MqContextC_Error_CC_API | |
MqContextC - move and copy an error from a context … | |
MqContextC_Log_CC_API | |
MqContextC - log the output to a string or a MkLogFileC … | |
MqContextC_Filter_CC_API | |
MqContextC - modify the data using the filter-technology … | |
MqContextC_Misc_CC_API | |
MqContextC - various functions to work on a context … | |
MqContextC_ClassApi_Class_CC_API | |
MqContextC - access data related to the factory-type of the object … | |
Typedefs | |
typedef void(MqContextC::*) | ccmqmsgque::MqContextC::MqTokenICB() |
instance-callback | |
typedef MqTokenICB | ccmqmsgque::MqContextC::MqBgErrorICB |
typedef MqTokenICB | ccmqmsgque::MqContextC::MqServiceICB |
typedef MqTokenICB | ccmqmsgque::MqContextC::MqServerSetupICB |
typedef MqTokenICB | ccmqmsgque::MqContextC::MqServerCleanupICB |
typedef MqTokenICB | ccmqmsgque::MqContextC::MqEventICB |
typedef void(*) | ccmqmsgque::MqContextC::MqTokenCCB(MqContextC *) |
class-callback | |
typedef MqTokenCCB | ccmqmsgque::MqContextC::MqBgErrorCCB |
typedef MqTokenCCB | ccmqmsgque::MqContextC::MqServiceCCB |
typedef MqTokenCCB | ccmqmsgque::MqContextC::MqServerSetupCCB |
typedef MqTokenCCB | ccmqmsgque::MqContextC::MqServerCleanupCCB |
typedef MqTokenCCB | ccmqmsgque::MqContextC::MqEventCCB |
Variables | |
static thread_local MqContextC | ccmqmsgque::MqContextC::MK_NULL_REF = {(MK_OBJ)0} |
context-info | |
extract boolean information from context | |
bool | ccmqmsgque::MqContextC::isParent () |
bool | ccmqmsgque::MqContextC::isChild () |
bool | ccmqmsgque::MqContextC::isMaster () |
bool | ccmqmsgque::MqContextC::isSlave () |
MqContextC - the class known as ctx or context is the application-handle of the application-server and also the main data-handle …
The context is the package-item with the required features and created by the implementation-layer-programmer. The context can be a client or a server.
The client-context-creation is triggerd by the software-workflow on demand. The client is calling the MqLinkCreate to create a connection to the server using the connection-arguments to specify the target.
The life-cycle of a client is:
ContextCreate | create and initialize the MqContextC ... |
LinkCreate | make ctx to a parent-context and setup a new client-server-link … |
SendTT | MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … |
ReadTT | read a PRIMITIVE TYPE from the read-data-package … |
LinkDelete | close the client-server-link … |
ContextDelete | Destructor - delete a MqContextC instance … |
Exit | delete the context and exit the current process or thread … |
The server-context-creation is always triggerd by the MqLinkCreate command of the client. The server is usually using a factory-constructor to call the MqContextCreate and finally to call the MqContextDelete.
The server-context is fully under control of the client.
The life-cycle of a server is:
SETUP | define a class and add the setup/cleanup code |
MqServerSetupIF | define the server-setup-interface (callback) used on startup … |
ServiceCreate | create a link between a service-token and a service-callback … |
MqServerCleanupIF | define the server-cleanup-interface (callback) used on cleanup … |
ServiceDelete | delete a service. … |
STARTUP | define the factory and start the listener |
FactoryAdd | add a new MqFactoryC identified by factory-identifier and defined by factory-constructor … |
FactoryNew | create a new MqContextC from a MqFactoryC … |
LinkCreate | make ctx to a parent-context and setup a new client-server-link … |
ProcessEvent | enter the event-loop and wait for an incoming service-request. … |
WORK | process the service-calls and exit on end |
ReadTT | read a PRIMITIVE TYPE from the read-data-package … |
SendTT | MqContextC - append a native PRIMITIVE TYPE value to the send-data-package … |
Exit | delete the context and exit the current process or thread … |
command | alias |
---|---|
[constructor,static] MqContextC* MqContextC::Create(MqContextC* tmpl = NULL) | ccmqmsgque::MqContextC() |
[destructor] ctx.Delete() | delete ctx |
Definition at line 168 of file MqContextC_cc.hh.
Definition at line 160 of file MqContextC_cc.hh.
Definition at line 172 of file MqContextC_cc.hh.
Definition at line 164 of file MqContextC_cc.hh.
Definition at line 171 of file MqContextC_cc.hh.
Definition at line 163 of file MqContextC_cc.hh.
Definition at line 170 of file MqContextC_cc.hh.
Definition at line 162 of file MqContextC_cc.hh.
Definition at line 169 of file MqContextC_cc.hh.
Definition at line 161 of file MqContextC_cc.hh.
void(*) ccmqmsgque::MqContextC::MqTokenCCB(MqContextC *) |
class-callback
Definition at line 166 of file MqContextC_cc.hh.
void(MqContextC::*) ccmqmsgque::MqContextC::MqTokenICB() |
instance-callback
Definition at line 158 of file MqContextC_cc.hh.
|
inline |
check if pointer is still valid
Definition at line 149 of file MqContextC_cc.hh.
|
inlinestaticprivate |
Definition at line 2617 of file MqContextC_inline_cc.hh.
|
inline |
return the LibMsgqueObject from current MqContextC instance
Definition at line 81 of file MqContextC_cc.hh.
|
inlinestatic |
return LibMsgqueObject from current MqContextC reference
Definition at line 129 of file MqContextC_cc.hh.
|
inlinestatic |
return LibMsgqueObject from current MqContextC pointer
Definition at line 105 of file MqContextC_cc.hh.
|
inline |
return the LibMsgqueObject from current MqContextC instance
Definition at line 88 of file MqContextC_cc.hh.
|
inlinestatic |
return LibMsgqueObject from current MqContextC reference
Definition at line 134 of file MqContextC_cc.hh.
|
inlinestatic |
return LibMsgqueObject from current MqContextC pointer
Definition at line 112 of file MqContextC_cc.hh.
|
inline |
(const) return the LibMsgqueObject from current MqContextC instance
Definition at line 93 of file MqContextC_cc.hh.
|
inlinestatic |
(const) return LibMsgqueObject from current MqContextC reference
Definition at line 139 of file MqContextC_cc.hh.
|
inlinestatic |
(const) return LibMsgqueObject from current MqContextC pointer
Definition at line 117 of file MqContextC_cc.hh.
|
inline |
(const) return the LibMsgqueObject from current MqContextC instance
Definition at line 100 of file MqContextC_cc.hh.
|
inlinestatic |
(const) return LibMsgqueObject from current MqContextC reference
Definition at line 144 of file MqContextC_cc.hh.
|
inlinestatic |
(const) return LibMsgqueObject from current MqContextC pointer
Definition at line 124 of file MqContextC_cc.hh.
void ccmqmsgque::MqContextC::Init | ( | MK_STRN | caller = __builtin_FUNCTION() | ) |
Definition at line 136 of file LibMqMsgque_cc.cc.
|
inline |
Definition at line 1313 of file MqContextC_cc.hh.
|
inline |
Definition at line 1314 of file MqContextC_cc.hh.
|
inline |
|
inline |
Definition at line 1315 of file MqContextC_cc.hh.
|
inlineprivate |
Definition at line 66 of file MqContextC_cc.hh.
|
inline |
Definition at line 72 of file MqContextC_cc.hh.
|
inlinestaticprivate |
Definition at line 48 of file MqContextC_cc.hh.
|
inlineprivate |
Definition at line 58 of file MqContextC_cc.hh.
|
inlinestaticprivate |
Definition at line 61 of file MqContextC_cc.hh.
|
inlinestatic |
return MqContextC from LibMsgqueObject
Definition at line 76 of file MqContextC_cc.hh.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
Definition at line 174 of file MqContextC_cc.hh.
|
static |
Definition at line 44 of file MqContextC_cc.hh.