MqContextC - various function to 'get' the configuration-data from a context … More...
Functions | |
MK_ATTR_HDL bool | MqConfigGetIsServer (MQ_CTX const ctx) |
does the context object is a server ? | |
MK_ATTR_HDL enum MqIdentE | MqConfigGetIdentFrom (MQ_CTX const ctx) |
get the MqConfigS::identFrom | |
MK_ATTR_HDL bool | MqConfigGetIsParent (MQ_CTX const ctx) |
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is None | |
MK_ATTR_HDL bool | MqConfigGetIsString (MQ_CTX const ctx) |
does the context object is using the string-mode ? | |
MK_ATTR_HDL MK_STRN | MqConfigGetName (MQ_CTXN const ctx) |
get the name of the context object | |
MK_ATTR_HDL MK_STRN | MqConfigGetPrefix (MQ_CTXN const ctx) |
get the MqConfigS::prefix | |
MK_ATTR_HDL MK_STRN | MqConfigGetPostfix (MQ_CTXN const ctx) |
get the MqConfigS::postfix | |
MK_ATTR_HDL MK_STRN | MqConfigGetStorage (MQ_CTXN const ctx) |
get the storage of the context object | |
MK_ATTR_HDL MK_I32 | MqConfigGetBuffersize (MQ_CTXN const ctx) |
get the minimum of the read/send buffersize of the socket | |
MK_ATTR_HDL MK_I32 | MqConfigGetPkgsize (MQ_CTXN const ctx) |
get the maximun size of a BDY package | |
MK_ATTR_HDL MK_TIME_T | MqConfigGetTimeout (MQ_CTXN const ctx) |
get the timeout value of the context object | |
MK_ATTR_HDL MK_STRN | MqConfigGetIoUds (MQ_CTXN const ctx) |
return the MqIoUdsConfigS | |
MQ_EXTERN enum MkErrorE | MqConfigGetIoTcp (MQ_CTX const ctx, MK_STRN *host_out, MK_STRN *port_out, MK_STRN *myhost_out, MK_STRN *myport_out) MK_ATTR_HDL |
get the configuration-data of the tcp-client-server-link … | |
MQ_EXTERN enum MkErrorE | MqConfigGetIoTcpL (MQ_CTX const ctx, MK_BFL *vals_out) MK_ATTR_HDL |
get the configuration-data of the tcp-client-server-link as MkBufferListC … | |
MK_ATTR_HDL MQ_SOCK_HDL | MqConfigGetIoPipe (MQ_CTX const ctx) |
return the MqIoPipeConfigS | |
MK_ATTR_HDL enum MqStartE | MqConfigGetStartAs (MQ_CTX const ctx) |
return the MqConfigS::startAs value | |
MK_ATTR_HDL enum MqStatusIsEF | MqConfigGetStatusIs (MQ_CTX const ctx) |
return the MqContextS::statusIs value | |
MQ_EXTERN config_t * | MqConfigGetConfigFile (MQ_CTX const ctx) MK_ATTR_HDL |
get the config-file handle used for libconfig API funtions | |
MQ_EXTERN config_setting_t * | MqConfigGetConfigRoot (MQ_CTX const ctx) MK_ATTR_HDL |
get the config-root handle used for libconfig API funtions | |
MQ_EXTERN enum MkErrorE | MqConfigSetConfigFile_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN const filename) |
set the config-file and parse for well-known config-items | |
MqContextC - MqContextC_ConfigApi_Get_C_API - function | |
MK_I32 | MqConfigGetBuffersizeP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetBuffersize … | |
enum MqIdentE | MqConfigGetIdentFromP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetIdentFrom … | |
MQ_SOCK_HDL | MqConfigGetIoPipeP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetIoPipe … | |
MK_STRN | MqConfigGetIoUdsP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetIoUds … | |
MK_BOOL | MqConfigGetIsParentP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetIsParent … | |
MK_BOOL | MqConfigGetIsServerP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetIsServer … | |
MK_BOOL | MqConfigGetIsStringP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetIsString … | |
MK_STRN | MqConfigGetNameP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetName … | |
MK_I32 | MqConfigGetPkgsizeP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetPkgsize … | |
MK_STRN | MqConfigGetPostfixP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetPostfix … | |
MK_STRN | MqConfigGetPrefixP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetPrefix … | |
enum MqStartE | MqConfigGetStartAsP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetStartAs … | |
enum MqStatusIsEF | MqConfigGetStatusIsP (MQ_CTX const ctx) |
Non-inline replacement for MqConfigGetStatusIs … | |
MK_STRN | MqConfigGetStorageP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetStorage … | |
MK_TIME_T | MqConfigGetTimeoutP (MQ_CTXN const ctx) |
Non-inline replacement for MqConfigGetTimeout … | |
#define | MQ_IS_SERVER(ctx) |
extract boolean information from context | |
#define | MQ_IS_SERVER_PARENT(ctx) |
#define | MQ_IS_CLIENT(ctx) |
#define | MQ_IS_CLIENT_PARENT(ctx) |
#define | MQ_IS_CHILD(ctx) |
#define | MQ_IS_PARENT(ctx) |
#define | MQ_IS_SLAVE(ctx) |
#define | MQ_IS_MASTER(ctx) |
#define | MQ_IS_LOOPBACK(ctx) |
#define | MQ_GET_PARENT(ctx) |
#define | MQ_GET_MASTER(ctx) |
MqContextC - MqContextC_ConfigApi_Get_C_API - overload | |
#define | MqConfigGetIoTcpL_E(...) |
#define | MqConfigGetIoTcpL_C(...) |
#define | MqConfigGetIoTcpL_e(...) |
#define | MqConfigSetConfigFile_NULL(...) |
#define | MqConfigSetConfigFile(...) |
#define | MqConfigSetConfigFile_E(...) |
#define | MqConfigSetConfigFile_C(...) |
#define | MqConfigGetIoTcp_E(...) |
#define | MqConfigGetIoTcp_C(...) |
MqContextC - various function to 'get' the configuration-data from a context …
#define MQ_GET_MASTER | ( | ctx | ) |
Definition at line 2402 of file LibMqMsgque_mq.h.
#define MQ_GET_PARENT | ( | ctx | ) |
Definition at line 2401 of file LibMqMsgque_mq.h.
#define MQ_IS_CHILD | ( | ctx | ) |
Definition at line 2395 of file LibMqMsgque_mq.h.
#define MQ_IS_CLIENT | ( | ctx | ) |
Definition at line 2393 of file LibMqMsgque_mq.h.
#define MQ_IS_CLIENT_PARENT | ( | ctx | ) |
Definition at line 2394 of file LibMqMsgque_mq.h.
#define MQ_IS_LOOPBACK | ( | ctx | ) |
Definition at line 2399 of file LibMqMsgque_mq.h.
#define MQ_IS_MASTER | ( | ctx | ) |
Definition at line 2398 of file LibMqMsgque_mq.h.
#define MQ_IS_PARENT | ( | ctx | ) |
Definition at line 2396 of file LibMqMsgque_mq.h.
#define MQ_IS_SERVER | ( | ctx | ) |
extract boolean information from context
Definition at line 2391 of file LibMqMsgque_mq.h.
#define MQ_IS_SERVER_PARENT | ( | ctx | ) |
Definition at line 2392 of file LibMqMsgque_mq.h.
#define MQ_IS_SLAVE | ( | ctx | ) |
Definition at line 2397 of file LibMqMsgque_mq.h.
#define MqConfigGetIoTcp_C | ( | ... | ) |
Definition at line 77 of file msgque_overload_mq.h.
#define MqConfigGetIoTcp_E | ( | ... | ) |
Definition at line 76 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_C | ( | ... | ) |
Definition at line 66 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_E | ( | ... | ) |
Definition at line 65 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_e | ( | ... | ) |
Definition at line 67 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile | ( | ... | ) |
Definition at line 71 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_C | ( | ... | ) |
Definition at line 73 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_E | ( | ... | ) |
Definition at line 72 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_NULL | ( | ... | ) |
Definition at line 70 of file msgque_overload_mq.h.
|
inline |
get the minimum of the read/send buffersize of the socket
[in] | ctx | the MqContextS instance to work on |
context.config.buffersize
(R/S) value Definition at line 8315 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetBuffersize …
get the config-file handle used for libconfig API funtions
[in] | ctx | the MqContextS instance to work on |
None
if no config-file is available. MQ_EXTERN config_setting_t * MqConfigGetConfigRoot | ( | MQ_CTX const | ctx | ) |
get the config-root handle used for libconfig API funtions
The root is the place in the config-file which belongs to the MqClassIdentGet application name.
[in] | ctx | the MqContextS instance to work on |
None
if no config-root is available.
|
inline |
get the MqConfigS::identFrom
[in] | ctx | the MqContextS instance to work on |
prefix
or factory Definition at line 8235 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetIdentFrom …
|
inline |
return the MqIoPipeConfigS
[in] | ctx | the MqContextS instance to work on |
Definition at line 8414 of file LibMqMsgque_mq.h.
|
extern |
Non-inline replacement for MqConfigGetIoPipe …
MQ_EXTERN enum MkErrorE MqConfigGetIoTcp | ( | MQ_CTX const | ctx, |
MK_STRN * | host_out, | ||
MK_STRN * | port_out, | ||
MK_STRN * | myhost_out, | ||
MK_STRN * | myport_out ) |
get the configuration-data of the tcp-client-server-link …
[in] | ctx | the MqContextS instance to work on |
[out] | host_out | client: name of the remote interface (default: localhost) server: name of the local interface (default: listen on all interfaces) |
[out] | port_out | client: name of the remote port server: name of the local port |
[out] | myhost_out | client: name of the local interface |
[out] | myport_out | client: name of the local port |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
None
None
… nothing will be done get the configuration-data of the tcp-client-server-link as MkBufferListC …
host |
| ||||
port |
| ||||
myhost | name of the local interface | ||||
myport | name of the local port |
[in] | ctx | the MqContextS instance to work on |
[out] | vals_out | the contain host, port, myhost and myport data |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
|
inline |
return the MqIoUdsConfigS
[in] | ctx | the MqContextS instance to work on |
context.config.io.uds.file
value Definition at line 8349 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetIoUds …
|
inline |
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is None
[in] | ctx | the MqContextS instance to work on |
(ctx->config.parent == NULL)
value Definition at line 8246 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetIsParent …
|
inline |
does the context object is a server ?
[in] | ctx | the MqContextS instance to work on |
(ctx->setup.isServer == true)
value Definition at line 8225 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetIsServer …
|
inline |
does the context object is using the string-mode ?
[in] | ctx | the MqContextS instance to work on |
(ctx->config.native == 'S')
value Definition at line 8256 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetIsString …
|
inline |
get the name of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.name
value Definition at line 8268 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetName …
|
inline |
get the maximun size of a BDY package
[in] | ctx | the MqContextS instance to work on |
context.config.pkgsize
(R/S) value Definition at line 8326 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetPkgsize …
|
inline |
get the MqConfigS::postfix
[in] | ctx | the MqContextS instance to work on |
Definition at line 8292 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetPostfix …
|
inline |
get the MqConfigS::prefix
[in] | ctx | the MqContextS instance to work on |
Definition at line 8280 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetPrefix …
|
inline |
return the MqConfigS::startAs value
Definition at line 8422 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetStartAs …
|
inline |
return the MqContextS::statusIs value
Definition at line 8430 of file LibMqMsgque_mq.h.
|
extern |
Non-inline replacement for MqConfigGetStatusIs …
|
inline |
get the storage of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.storage
value Definition at line 8304 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetStorage …
|
inline |
get the timeout value of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.timeout
value Definition at line 8337 of file LibMqMsgque_mq.h.
Non-inline replacement for MqConfigGetTimeout …
MQ_EXTERN enum MkErrorE MqConfigSetConfigFile_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN const | filename ) |
set the config-file and parse for well-known config-items
Read more at MqConfigS::cfg
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | ctx | the MqContextS instance to work on |
[in] | filename | name of the config-file for input |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |