MqContextC - various function to 'set' the configuration-data in a context … More...
MqContextC - various function to 'set' the configuration-data in a context …
#define MqConfigSetAllDebug | ( | ... | ) |
Definition at line 120 of file msgque_overload_mq.h.
#define MqConfigSetAllDebug_C | ( | ... | ) |
Definition at line 122 of file msgque_overload_mq.h.
#define MqConfigSetAllDebug_E | ( | ... | ) |
Definition at line 121 of file msgque_overload_mq.h.
#define MqConfigSetAllDebug_NULL | ( | ... | ) |
Definition at line 119 of file msgque_overload_mq.h.
#define MqConfigSetDaemon | ( | ... | ) |
Definition at line 124 of file msgque_overload_mq.h.
#define MqConfigSetDaemon_C | ( | ... | ) |
Definition at line 126 of file msgque_overload_mq.h.
#define MqConfigSetDaemon_E | ( | ... | ) |
Definition at line 125 of file msgque_overload_mq.h.
#define MqConfigSetDaemon_NULL | ( | ... | ) |
Definition at line 123 of file msgque_overload_mq.h.
#define MqConfigSetIoPipe | ( | ... | ) |
Definition at line 128 of file msgque_overload_mq.h.
#define MqConfigSetIoPipe_C | ( | ... | ) |
Definition at line 130 of file msgque_overload_mq.h.
#define MqConfigSetIoPipe_E | ( | ... | ) |
Definition at line 129 of file msgque_overload_mq.h.
#define MqConfigSetIoPipe_NULL | ( | ... | ) |
Definition at line 127 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp | ( | ... | ) |
Definition at line 132 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_1 | ( | ctx | ) |
Definition at line 136 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_2 | ( | ctx, | |
host ) |
Definition at line 135 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_3 | ( | ctx, | |
host, | |||
port ) |
Definition at line 134 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_4 | ( | ctx, | |
host, | |||
port, | |||
myhost ) |
Definition at line 133 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_C | ( | ... | ) |
Definition at line 138 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_E | ( | ... | ) |
Definition at line 137 of file msgque_overload_mq.h.
#define MqConfigSetIoTcp_NULL | ( | ... | ) |
Definition at line 131 of file msgque_overload_mq.h.
#define MqConfigSetIoTcpL | ( | ... | ) |
Definition at line 140 of file msgque_overload_mq.h.
#define MqConfigSetIoTcpL_C | ( | ... | ) |
Definition at line 142 of file msgque_overload_mq.h.
#define MqConfigSetIoTcpL_E | ( | ... | ) |
Definition at line 141 of file msgque_overload_mq.h.
#define MqConfigSetIoTcpL_NULL | ( | ... | ) |
Definition at line 139 of file msgque_overload_mq.h.
#define MqConfigSetIoUds | ( | ... | ) |
Definition at line 144 of file msgque_overload_mq.h.
#define MqConfigSetIoUds_C | ( | ... | ) |
Definition at line 146 of file msgque_overload_mq.h.
#define MqConfigSetIoUds_E | ( | ... | ) |
Definition at line 145 of file msgque_overload_mq.h.
#define MqConfigSetIoUds_NULL | ( | ... | ) |
Definition at line 143 of file msgque_overload_mq.h.
#define MqConfigSetName | ( | ... | ) |
Definition at line 148 of file msgque_overload_mq.h.
#define MqConfigSetName_NULL | ( | ... | ) |
Definition at line 147 of file msgque_overload_mq.h.
#define MqConfigSetPostfix | ( | ... | ) |
Definition at line 150 of file msgque_overload_mq.h.
#define MqConfigSetPostfix_NULL | ( | ... | ) |
Definition at line 149 of file msgque_overload_mq.h.
#define MqConfigSetPrefix | ( | ... | ) |
Definition at line 152 of file msgque_overload_mq.h.
#define MqConfigSetPrefix_NULL | ( | ... | ) |
Definition at line 151 of file msgque_overload_mq.h.
#define MqConfigSetPrefixWithNoLock | ( | ... | ) |
Definition at line 154 of file msgque_overload_mq.h.
#define MqConfigSetPrefixWithNoLock_NULL | ( | ... | ) |
Definition at line 153 of file msgque_overload_mq.h.
#define MqConfigSetStartAs_C | ( | ... | ) |
Definition at line 156 of file msgque_overload_mq.h.
#define MqConfigSetStartAs_E | ( | ... | ) |
Definition at line 155 of file msgque_overload_mq.h.
#define MqConfigSetStartAsString_C | ( | ... | ) |
Definition at line 158 of file msgque_overload_mq.h.
#define MqConfigSetStartAsString_E | ( | ... | ) |
Definition at line 157 of file msgque_overload_mq.h.
#define MqConfigSetStorage | ( | ... | ) |
Definition at line 160 of file msgque_overload_mq.h.
#define MqConfigSetStorage_NULL | ( | ... | ) |
Definition at line 159 of file msgque_overload_mq.h.
check if libmqmsgque::MqConfigS::startAs can be set to data
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetAllDebug_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_I32 const | data ) |
set the MkRuntimeS::debug value
set all childs and all slaves and the link target parter… too
set the libmqmsgque::MqIoConfigS::timeout value
set all childs and all slaves too
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetDaemon_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | pidfile ) |
start the server-context as daemon …
A daemon is a server-process without any link to the parent-process. A daemon-process has closed all default IO (e.g stdout, stdin, stderr) and forked into the background. (default: no daemon)
[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] | pidfile | write the PID of the daemon into this file (default: NULL, do not start as daemon) |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetIoPipe_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MQ_SOCK_HDL | fh ) |
set the pipe configuration data …
This is configuration option is only useful for a (x)inetd setup to use the stdin (socket=0) as send/recv communication socket
[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] | fh | the name of the known socket |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetIoTcp_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | host, | ||
MK_STRN | port, | ||
MK_STRN | myhost, | ||
MK_STRN | myport ) |
configure a context to use a tcp-client-server-link …
[in] | host | client: name of the remote interface (default: localhost) server: name of the local interface (default: listen on all interfaces) |
[in] | port | client: name of the remote port server: name of the local port |
[in] | myhost | client: name of the local interface |
[in] | myport | client: 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 |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetIoTcpL_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_BFL const | vals ) |
configure a context to use a tcp-client-server-link …
[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] | vals | a list with host, port, myhost, myport |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
MQ_EXTERN enum MkErrorE libmqmsgque::MqConfigSetIoUds_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | file ) |
configure a context to use a uds-client-server-link …
The uds-socket (http://en.wikipedia.org/wiki/Unix_domain_socket) is usually 50% faster than a local tcp communication but only available on UNIX.
[in] | file | name of a uds-socket-file (default: MK_NULL ) |
[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 |
MkExceptionC | → The default-exception from the Programming-Language-Micro-Kernel (PLMK) |
set the libmqmsgque::MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian
set the libmqmsgque::MqConfigS::dispname value and cleanup old value
MQ_EXTERN void libmqmsgque::MqConfigSetPostfix_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | data ) |
set the client-part (2) of the application-identifer libmqmsgque::MqConfigS::dispname …
The postfix is used for:
The postfix is initialize with:
ctx.ConfigSetPostfix(MK_STRN data)
functionMQ_EXTERN void libmqmsgque::MqConfigSetPrefix_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | data ) |
set the server-part (1) of the application-identifer libmqmsgque::MqConfigS::dispname …
The prefix is used for:
The prefix is initialize with:
ctx.ConfigSetPrefix(MK_STRN data)
or the ctx.ConfigSetName(MK_STRN data)
functionMQ_EXTERN void libmqmsgque::MqConfigSetPrefixWithNoLock_RT | ( | MK_RT const | mkrt, |
MQ_CTX const | ctx, | ||
MK_STRN | data ) |
set the libmqmsgque::MqConfigS::prefix with low-priority …
The following steps are performed :
MK_NULL
false
true
set the libmqmsgque::MqConfigS::startAs value using string default
, thread
, fork
or spawn