MqContextC - various function to 'get' the configuration-data from a context … More...
Functions | |
static bool | libmqmsgque::MqConfigGetIsServer (MQ_CTX const ctx) |
does the context object is a server ? | |
static enum MqIdentE | libmqmsgque::MqConfigGetIdentFrom (MQ_CTX const ctx) |
get the libmqmsgque::MqConfigS::identFrom | |
static bool | libmqmsgque::MqConfigGetIsParent (MQ_CTX const ctx) |
does the context object is a parent ? An objext is a parent id the libmqmsgque::MqConfigS::parent attribute is MK_NULL | |
static bool | libmqmsgque::MqConfigGetIsString (MQ_CTX const ctx) |
does the context object is using the string-mode ? | |
static MK_STRN | libmqmsgque::MqConfigGetName (MQ_CTXN const ctx) |
get the name of the context object | |
static MK_STRN | libmqmsgque::MqConfigGetPrefix (MQ_CTXN const ctx) |
get the libmqmsgque::MqConfigS::dispPrefix | |
static MK_STRN | libmqmsgque::MqConfigGetPostfix (MQ_CTXN const ctx) |
get the libmqmsgque::MqConfigS::dispPostfix | |
static MK_STRN | libmqmsgque::MqConfigGetStorage (MQ_CTXN const ctx) |
get the storage of the context object | |
static MK_I32 | libmqmsgque::MqConfigGetBuffersize (MQ_CTXN const ctx) |
get the minimum of the read/send buffersize of the socket | |
static MK_I32 | libmqmsgque::MqConfigGetPkgsize (MQ_CTXN const ctx) |
get the maximun size of a BDY package | |
static MK_TIME_T | libmqmsgque::MqConfigGetTimeout (MQ_CTXN const ctx) |
get the timeout value of the context object | |
static MK_STRN | libmqmsgque::MqConfigGetIoUds (MQ_CTXN const ctx) |
return the libmqmsgque::MqIoUdsConfigS | |
enum MkErrorE | libmqmsgque::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 … | |
enum MkErrorE | libmqmsgque::MqConfigGetIoTcpL_RT (MK_RT mkrt, MQ_CTX const ctx, MK_BFL *vals_out) |
get the configuration-data of the tcp-client-server-link as MkBufferListC … | |
static MQ_SOCK_HDL | libmqmsgque::MqConfigGetIoPipe (MQ_CTX const ctx) |
return the libmqmsgque::MqIoPipeConfigS | |
static enum MqStartE | libmqmsgque::MqConfigGetStartAs (MQ_CTX const ctx) |
return the libmqmsgque::MqConfigS::startAs value | |
static enum MqStatusIsEF | libmqmsgque::MqConfigGetStatusIs (MQ_CTX const ctx) |
return the libmqmsgque::MqContextS::statusIs value | |
config_t * | libmqmsgque::MqConfigGetConfigFile (MQ_CTX const ctx) |
get the config-file handle used for libconfig API funtions | |
config_setting_t * | libmqmsgque::MqConfigGetConfigRoot (MQ_CTX const ctx) |
get the config-root handle used for libconfig API funtions | |
enum MkErrorE | libmqmsgque::MqConfigSetConfigFile_RT (MK_RT mkrt, MQ_CTX const ctx, MK_STRN const filename) |
set the config-file and parse for well-known config-items | |
#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_NULL(...) |
#define | MqConfigGetIoTcpL(...) |
#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 2440 of file LibMqMsgque_mq.h.
#define MQ_GET_PARENT | ( | ctx | ) |
Definition at line 2439 of file LibMqMsgque_mq.h.
#define MQ_IS_CHILD | ( | ctx | ) |
Definition at line 2433 of file LibMqMsgque_mq.h.
#define MQ_IS_CLIENT | ( | ctx | ) |
Definition at line 2431 of file LibMqMsgque_mq.h.
#define MQ_IS_CLIENT_PARENT | ( | ctx | ) |
Definition at line 2432 of file LibMqMsgque_mq.h.
#define MQ_IS_LOOPBACK | ( | ctx | ) |
Definition at line 2437 of file LibMqMsgque_mq.h.
#define MQ_IS_MASTER | ( | ctx | ) |
Definition at line 2436 of file LibMqMsgque_mq.h.
#define MQ_IS_PARENT | ( | ctx | ) |
Definition at line 2434 of file LibMqMsgque_mq.h.
#define MQ_IS_SERVER | ( | ctx | ) |
extract boolean information from context
Definition at line 2429 of file LibMqMsgque_mq.h.
#define MQ_IS_SERVER_PARENT | ( | ctx | ) |
Definition at line 2430 of file LibMqMsgque_mq.h.
#define MQ_IS_SLAVE | ( | ctx | ) |
Definition at line 2435 of file LibMqMsgque_mq.h.
#define MqConfigGetIoTcp_C | ( | ... | ) |
Definition at line 79 of file msgque_overload_mq.h.
#define MqConfigGetIoTcp_E | ( | ... | ) |
Definition at line 78 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL | ( | ... | ) |
Definition at line 66 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_C | ( | ... | ) |
Definition at line 68 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_E | ( | ... | ) |
Definition at line 67 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_e | ( | ... | ) |
Definition at line 69 of file msgque_overload_mq.h.
#define MqConfigGetIoTcpL_NULL | ( | ... | ) |
Definition at line 65 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile | ( | ... | ) |
Definition at line 73 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_C | ( | ... | ) |
Definition at line 75 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_E | ( | ... | ) |
Definition at line 74 of file msgque_overload_mq.h.
#define MqConfigSetConfigFile_NULL | ( | ... | ) |
Definition at line 72 of file msgque_overload_mq.h.
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 8405 of file LibMqMsgque_mq.h.
get the config-file handle used for libconfig API funtions
[in] | ctx | the MqContextS instance to work on |
MK_NULL
if no config-file is available. config_setting_t * libmqmsgque::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 |
MK_NULL
if no config-root is available. get the libmqmsgque::MqConfigS::identFrom
[in] | ctx | the MqContextS instance to work on |
prefix
or factory Definition at line 8318 of file LibMqMsgque_mq.h.
|
inlinestatic |
return the libmqmsgque::MqIoPipeConfigS
[in] | ctx | the MqContextS instance to work on |
Definition at line 8510 of file LibMqMsgque_mq.h.
enum MkErrorE libmqmsgque::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) |
MK_NULL
MK_NULL
… 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] | 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 |
[out] | vals_out | the contain host, port, myhost and myport data |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
return the libmqmsgque::MqIoUdsConfigS
[in] | ctx | the MqContextS instance to work on |
context.config.io.uds.file
value Definition at line 8442 of file LibMqMsgque_mq.h.
|
inlinestatic |
does the context object is a parent ? An objext is a parent id the libmqmsgque::MqConfigS::parent attribute is MK_NULL
[in] | ctx | the MqContextS instance to work on |
(ctx->config.parent == NULL)
value Definition at line 8330 of file LibMqMsgque_mq.h.
|
inlinestatic |
does the context object is a server ?
[in] | ctx | the MqContextS instance to work on |
(ctx->setup.isServer == true)
value Definition at line 8307 of file LibMqMsgque_mq.h.
|
inlinestatic |
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 8341 of file LibMqMsgque_mq.h.
get the name of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.name
value Definition at line 8354 of file LibMqMsgque_mq.h.
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 8417 of file LibMqMsgque_mq.h.
get the libmqmsgque::MqConfigS::dispPostfix
[in] | ctx | the MqContextS instance to work on |
Definition at line 8380 of file LibMqMsgque_mq.h.
get the libmqmsgque::MqConfigS::dispPrefix
[in] | ctx | the MqContextS instance to work on |
Definition at line 8367 of file LibMqMsgque_mq.h.
return the libmqmsgque::MqConfigS::startAs value
Definition at line 8519 of file LibMqMsgque_mq.h.
|
inlinestatic |
return the libmqmsgque::MqContextS::statusIs value
Definition at line 8528 of file LibMqMsgque_mq.h.
get the storage of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.storageFile
value Definition at line 8393 of file LibMqMsgque_mq.h.
get the timeout value of the context object
[in] | ctx | the MqContextS instance to work on |
context.config.timeout
value Definition at line 8429 of file LibMqMsgque_mq.h.
enum MkErrorE libmqmsgque::MqConfigSetConfigFile_RT | ( | MK_RT | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN const | filename ) |
set the config-file and parse for well-known config-items
Read more at libmqmsgque::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) |