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