MqContextC - various function to 'set' the configuration-data in a context … More...
Functions | |
MQ_EXTERN void | MqConfigSetName_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN data) |
set the MqConfigS::dispname value and cleanup old value | |
MQ_EXTERN void | MqConfigSetPrefixWithNoLock_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN data) |
set the MqConfigS::prefix with low-priority … | |
MQ_EXTERN void | MqConfigSetPrefix_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN data) |
set the server-part (1) of the application-identifer MqConfigS::dispname … | |
MQ_EXTERN void | MqConfigSetPostfix_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN data) |
set the client-part (2) of the application-identifer MqConfigS::dispname … | |
MQ_EXTERN void | MqConfigSetStorage_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN data) |
set the Storage value and cleanup old value | |
MQ_EXTERN void | MqConfigSetAllTimeout (MQ_CTX const ctx, MK_TIME_T data) MK_ATTR_HDL |
set the MqIoConfigS::timeout value | |
MQ_EXTERN enum MkErrorE | MqConfigSetAllDebug_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_I32 const data) |
set the MkRuntimeS::debug value | |
MQ_EXTERN void | MqConfigSetIsString (MQ_CTX const ctx, bool data) MK_ATTR_HDL |
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian | |
MQ_EXTERN enum MkErrorE | MqConfigSetStartAs (MQ_CTX const ctx, enum MqStartE data) MK_ATTR_HDL |
set the MqConfigS::startAs value | |
MQ_EXTERN enum MkErrorE | MqConfigSetStartAsString (MQ_CTX const ctx, MK_STRN data) MK_ATTR_HDL |
set the MqConfigS::startAs value using string default , thread , fork or spawn | |
MQ_EXTERN bool | MqConfigCheckStartAs (MQ_CTX const ctx, enum MqStartE data) MK_ATTR_HDL |
check if MqConfigS::startAs can be set to data | |
MQ_EXTERN enum MkErrorE | MqConfigSetIoUds_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN file) |
configure a context to use a uds-client-server-link … | |
MQ_EXTERN enum MkErrorE | 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 … | |
MQ_EXTERN enum MkErrorE | MqConfigSetIoTcpL_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_BFL const vals) |
configure a context to use a tcp-client-server-link … | |
MQ_EXTERN enum MkErrorE | MqConfigSetIoPipe_RT (MK_RT const mkrt, MQ_CTX const ctx, MQ_SOCK_HDL fh) |
set the pipe configuration data … | |
MQ_EXTERN enum MkErrorE | MqConfigSetDaemon_RT (MK_RT const mkrt, MQ_CTX const ctx, MK_STRN pidfile) |
start the server-context as daemon … | |
MQ_EXTERN void | MqConfigSetBuffersize (MQ_CTX const ctx, MK_I32 data) MK_ATTR_HDL |
set the MqIoConfigS::buffersize value | |
MQ_EXTERN void | MqConfigSetPkgsize (MQ_CTX const ctx, MK_I32 data) MK_ATTR_HDL |
set the MqIoConfigS::pkgsize value | |
MQ_EXTERN void | MqConfigSetTimeout (MQ_CTX const ctx, MK_TIME_T data) MK_ATTR_HDL |
set the MqIoConfigS::timeout value | |
MQ_EXTERN void | MqConfigSetIsServer (MQ_CTX const ctx, bool data) MK_ATTR_HDL |
set the MqSetupS::isServer value | |
MQ_EXTERN void | MqConfigSetIdentFrom (MQ_CTX const ctx, enum MqIdentE data) MK_ATTR_HDL |
set the MqConfigS::identFrom value | |
MQ_EXTERN void | MqConfigSetIgnoreExit (MQ_CTX const ctx, bool data) MK_ATTR_HDL |
set the MqSetupS::ignoreExit value | |
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.
MQ_EXTERN enum MkErrorE 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 MqIoConfigS::timeout value
set all childs and all slaves too
MQ_EXTERN enum MkErrorE 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 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 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 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) |
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: None ) |
[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 MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian
set the MqConfigS::dispname value and cleanup old value
set the client-part (2) of the application-identifer MqConfigS::dispname …
The postfix is used for:
The postfix is initialize with:
ctx.ConfigSetPostfix(data:string)
functionset the server-part (1) of the application-identifer MqConfigS::dispname …
The prefix is used for:
The prefix is initialize with:
ctx.ConfigSetPrefix(data:string)
or the ctx.ConfigSetName(data:string)
functionset the MqConfigS::prefix with low-priority …
The following steps are performed :
None
false
true
set the MqConfigS::startAs value using string default
, thread
, fork
or spawn
set the Storage value and cleanup old value