libmqmsgque 9.0
Loading...
Searching...
No Matches
Functions
MqContextC_ConfigApi_Set_C_API

various function to 'set' configuration-data from a MqContextCMore...

+ Collaboration diagram for MqContextC_ConfigApi_Set_C_API:

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_INT 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_INT data) MK_ATTR_HDL
 set the MqIoConfigS::buffersize value
 
MQ_EXTERN void MqConfigSetPkgsize (MQ_CTX const ctx, MK_INT 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
 

Overload

#define MqConfigSetAllDebug(...)   MqConfigSetAllDebug_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetAllDebug_E(...)   MkErrorCheck(MqConfigSetAllDebug(__VA_ARGS__))
 
#define MqConfigSetAllDebug_C(...)   if (MkErrorCheckI(MqConfigSetAllDebug(__VA_ARGS__)))
 
#define MqConfigSetDaemon(...)   MqConfigSetDaemon_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetDaemon_E(...)   MkErrorCheck(MqConfigSetDaemon(__VA_ARGS__))
 
#define MqConfigSetDaemon_C(...)   if (MkErrorCheckI(MqConfigSetDaemon(__VA_ARGS__)))
 
#define MqConfigSetIoPipe(...)   MqConfigSetIoPipe_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetIoPipe_E(...)   MkErrorCheck(MqConfigSetIoPipe(__VA_ARGS__))
 
#define MqConfigSetIoPipe_C(...)   if (MkErrorCheckI(MqConfigSetIoPipe(__VA_ARGS__)))
 
#define MqConfigSetIoTcp(...)   MqConfigSetIoTcp_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetIoTcp_4(ctx, host, port, myhost)   MqConfigSetIoTcp(ctx,host,port,myhost,NULL)
 
#define MqConfigSetIoTcp_3(ctx, host, port)   MqConfigSetIoTcp(ctx,host,port,NULL,NULL)
 
#define MqConfigSetIoTcp_2(ctx, host)   MqConfigSetIoTcp(ctx,host,NULL,NULL,NULL)
 
#define MqConfigSetIoTcp_1(ctx)   MqConfigSetIoTcp(ctx,NULL,NULL,NULL,NULL)
 
#define MqConfigSetIoTcp_E(...)   MkErrorCheck(MqConfigSetIoTcp(__VA_ARGS__))
 
#define MqConfigSetIoTcp_C(...)   if (MkErrorCheckI(MqConfigSetIoTcp(__VA_ARGS__)))
 
#define MqConfigSetIoTcpL(...)   MqConfigSetIoTcpL_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetIoTcpL_E(...)   MkErrorCheck(MqConfigSetIoTcpL(__VA_ARGS__))
 
#define MqConfigSetIoTcpL_C(...)   if (MkErrorCheckI(MqConfigSetIoTcpL(__VA_ARGS__)))
 
#define MqConfigSetIoUds(...)   MqConfigSetIoUds_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetIoUds_E(...)   MkErrorCheck(MqConfigSetIoUds(__VA_ARGS__))
 
#define MqConfigSetIoUds_C(...)   if (MkErrorCheckI(MqConfigSetIoUds(__VA_ARGS__)))
 
#define MqConfigSetName(...)   MqConfigSetName_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetPostfix(...)   MqConfigSetPostfix_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetPrefix(...)   MqConfigSetPrefix_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetPrefixWithNoLock(...)   MqConfigSetPrefixWithNoLock_RT(MK_RT_CALL __VA_ARGS__)
 
#define MqConfigSetStartAs_E(...)   MkErrorCheck(MqConfigSetStartAs(__VA_ARGS__))
 
#define MqConfigSetStartAs_C(...)   if (MkErrorCheckI(MqConfigSetStartAs(__VA_ARGS__)))
 
#define MqConfigSetStartAsString_E(...)   MkErrorCheck(MqConfigSetStartAsString(__VA_ARGS__))
 
#define MqConfigSetStartAsString_C(...)   if (MkErrorCheckI(MqConfigSetStartAsString(__VA_ARGS__)))
 
#define MqConfigSetStorage(...)   MqConfigSetStorage_RT(MK_RT_CALL __VA_ARGS__)
 

Detailed Description

various function to 'set' configuration-data from a MqContextC

Macro Definition Documentation

◆ MqConfigSetAllDebug

#define MqConfigSetAllDebug (   ...)    MqConfigSetAllDebug_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 206 of file msgque_overload_mq.h.

◆ MqConfigSetAllDebug_C

#define MqConfigSetAllDebug_C (   ...)    if (MkErrorCheckI(MqConfigSetAllDebug(__VA_ARGS__)))

Definition at line 208 of file msgque_overload_mq.h.

◆ MqConfigSetAllDebug_E

#define MqConfigSetAllDebug_E (   ...)    MkErrorCheck(MqConfigSetAllDebug(__VA_ARGS__))

Definition at line 207 of file msgque_overload_mq.h.

◆ MqConfigSetDaemon

#define MqConfigSetDaemon (   ...)    MqConfigSetDaemon_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 209 of file msgque_overload_mq.h.

◆ MqConfigSetDaemon_C

#define MqConfigSetDaemon_C (   ...)    if (MkErrorCheckI(MqConfigSetDaemon(__VA_ARGS__)))

Definition at line 211 of file msgque_overload_mq.h.

◆ MqConfigSetDaemon_E

#define MqConfigSetDaemon_E (   ...)    MkErrorCheck(MqConfigSetDaemon(__VA_ARGS__))

Definition at line 210 of file msgque_overload_mq.h.

◆ MqConfigSetIoPipe

#define MqConfigSetIoPipe (   ...)    MqConfigSetIoPipe_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 212 of file msgque_overload_mq.h.

◆ MqConfigSetIoPipe_C

#define MqConfigSetIoPipe_C (   ...)    if (MkErrorCheckI(MqConfigSetIoPipe(__VA_ARGS__)))

Definition at line 214 of file msgque_overload_mq.h.

◆ MqConfigSetIoPipe_E

#define MqConfigSetIoPipe_E (   ...)    MkErrorCheck(MqConfigSetIoPipe(__VA_ARGS__))

Definition at line 213 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp

#define MqConfigSetIoTcp (   ...)    MqConfigSetIoTcp_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 215 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_1

#define MqConfigSetIoTcp_1 (   ctx)    MqConfigSetIoTcp(ctx,NULL,NULL,NULL,NULL)

Definition at line 219 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_2

#define MqConfigSetIoTcp_2 (   ctx,
  host 
)    MqConfigSetIoTcp(ctx,host,NULL,NULL,NULL)

Definition at line 218 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_3

#define MqConfigSetIoTcp_3 (   ctx,
  host,
  port 
)    MqConfigSetIoTcp(ctx,host,port,NULL,NULL)

Definition at line 217 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_4

#define MqConfigSetIoTcp_4 (   ctx,
  host,
  port,
  myhost 
)    MqConfigSetIoTcp(ctx,host,port,myhost,NULL)

Definition at line 216 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_C

#define MqConfigSetIoTcp_C (   ...)    if (MkErrorCheckI(MqConfigSetIoTcp(__VA_ARGS__)))

Definition at line 221 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcp_E

#define MqConfigSetIoTcp_E (   ...)    MkErrorCheck(MqConfigSetIoTcp(__VA_ARGS__))

Definition at line 220 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcpL

#define MqConfigSetIoTcpL (   ...)    MqConfigSetIoTcpL_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 222 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcpL_C

#define MqConfigSetIoTcpL_C (   ...)    if (MkErrorCheckI(MqConfigSetIoTcpL(__VA_ARGS__)))

Definition at line 224 of file msgque_overload_mq.h.

◆ MqConfigSetIoTcpL_E

#define MqConfigSetIoTcpL_E (   ...)    MkErrorCheck(MqConfigSetIoTcpL(__VA_ARGS__))

Definition at line 223 of file msgque_overload_mq.h.

◆ MqConfigSetIoUds

#define MqConfigSetIoUds (   ...)    MqConfigSetIoUds_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 225 of file msgque_overload_mq.h.

◆ MqConfigSetIoUds_C

#define MqConfigSetIoUds_C (   ...)    if (MkErrorCheckI(MqConfigSetIoUds(__VA_ARGS__)))

Definition at line 227 of file msgque_overload_mq.h.

◆ MqConfigSetIoUds_E

#define MqConfigSetIoUds_E (   ...)    MkErrorCheck(MqConfigSetIoUds(__VA_ARGS__))

Definition at line 226 of file msgque_overload_mq.h.

◆ MqConfigSetName

#define MqConfigSetName (   ...)    MqConfigSetName_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 228 of file msgque_overload_mq.h.

◆ MqConfigSetPostfix

#define MqConfigSetPostfix (   ...)    MqConfigSetPostfix_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 229 of file msgque_overload_mq.h.

◆ MqConfigSetPrefix

#define MqConfigSetPrefix (   ...)    MqConfigSetPrefix_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 230 of file msgque_overload_mq.h.

◆ MqConfigSetPrefixWithNoLock

#define MqConfigSetPrefixWithNoLock (   ...)    MqConfigSetPrefixWithNoLock_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 231 of file msgque_overload_mq.h.

◆ MqConfigSetStartAs_C

#define MqConfigSetStartAs_C (   ...)    if (MkErrorCheckI(MqConfigSetStartAs(__VA_ARGS__)))

Definition at line 233 of file msgque_overload_mq.h.

◆ MqConfigSetStartAs_E

#define MqConfigSetStartAs_E (   ...)    MkErrorCheck(MqConfigSetStartAs(__VA_ARGS__))

Definition at line 232 of file msgque_overload_mq.h.

◆ MqConfigSetStartAsString_C

#define MqConfigSetStartAsString_C (   ...)    if (MkErrorCheckI(MqConfigSetStartAsString(__VA_ARGS__)))

Definition at line 235 of file msgque_overload_mq.h.

◆ MqConfigSetStartAsString_E

#define MqConfigSetStartAsString_E (   ...)    MkErrorCheck(MqConfigSetStartAsString(__VA_ARGS__))

Definition at line 234 of file msgque_overload_mq.h.

◆ MqConfigSetStorage

#define MqConfigSetStorage (   ...)    MqConfigSetStorage_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 236 of file msgque_overload_mq.h.

Function Documentation

◆ MqConfigCheckStartAs()

MQ_EXTERN bool MqConfigCheckStartAs ( MQ_CTX const  ctx,
enum MqStartE  data 
)

check if MqConfigS::startAs can be set to data

◆ MqConfigSetAllDebug_RT()

MQ_EXTERN enum MkErrorE MqConfigSetAllDebug_RT ( MK_RT const  mkrt,
MQ_CTX const  ctx,
MK_INT const  data 
)

set the MkRuntimeS::debug value

set all childs and all slaves and the link target parter… too

◆ MqConfigSetAllTimeout()

MQ_EXTERN void MqConfigSetAllTimeout ( MQ_CTX const  ctx,
MK_TIME_T  data 
)

set the MqIoConfigS::timeout value

set all childs and all slaves too

◆ MqConfigSetBuffersize()

MQ_EXTERN void MqConfigSetBuffersize ( MQ_CTX const  ctx,
MK_INT  data 
)

set the MqIoConfigS::buffersize value

◆ MqConfigSetDaemon_RT()

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)

MK_RT_ARGS
MQ_CTX const ctx,
) {
if (MQ_IS_SERVER(ctx)) {
if (MqContextCT_X(ctx)->ignoreFork == true) {
return MkErrorDbV_XS (MK_ERROR_OPTION_FORBIDDEN, "--daemon", "current");
} else {
}
} else {
return MkErrorDbV_XS (MK_ERROR_OPTION_FORBIDDEN, "--daemon", "client");
}
return MK_OK;
}
#define MkErrorStack_1X(...)
MkErrorE
MK_OK
const MK_STRB * MK_STRN
#define MkOBJ(x)
void MkRuntimeSetIsSilent(bool silent)
#define MK_RT_ATTR_HDL_CHECK(x)
#define MK_RT_ATTR_RUNTIME_CHECK_XN(x)
#define MqContextCT_X(instance)
cast from an instance into the specific-instance-type …
Definition msgque_mq.h:3865
#define MQ_IS_SERVER(ctx)
extract boolean information from context
Definition msgque_mq.h:2339
MQ_EXTERN enum MkErrorE MqConfigSetDaemon_RT(MK_RT const mkrt, MQ_CTX const ctx, MK_STRN pidfile)
start the server-context as daemon …
#define MqFactoryCT
instance-type as specific-instance-type for MqFactoryC in the target-programming-language (C,...
Definition msgque_mq.h:3071
#define MkErrorCheck(err)
PUBLIC data structure for the libmqmsgque-specific-data
Definition msgque_mq.h:3804
Attention
this option require the fork system-call and is not compatible with threads.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]pidfilewrite the PID of the daemon into this file (default: NULL, do not start as daemon)
Returns
set the MkErrorC to the status MK_OK, MK_CONTINUE or MK_ERROR

◆ MqConfigSetIdentFrom()

MQ_EXTERN void MqConfigSetIdentFrom ( MQ_CTX const  ctx,
enum MqIdentE  data 
)

set the MqConfigS::identFrom value

◆ MqConfigSetIgnoreExit()

MQ_EXTERN void MqConfigSetIgnoreExit ( MQ_CTX const  ctx,
bool  data 
)

set the MqSetupS::ignoreExit value

◆ MqConfigSetIoPipe_RT()

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

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]fhthe name of the known socket
Returns
set the MkErrorC to the status MK_OK, MK_CONTINUE or MK_ERROR

◆ MqConfigSetIoTcp_RT()

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

Parameters
[in]hostclient: name of the remote interface (default: localhost)
server: name of the local interface (default: listen on all interfaces)
[in]portclient: name of the remote port
server: name of the local port
[in]myhostclient: name of the local interface
[in]myportclient: name of the local port
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
Returns
set the MkErrorC to the status MK_OK, MK_CONTINUE or MK_ERROR

◆ MqConfigSetIoTcpL_RT()

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

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]valsa list with host, port, myhost, myport
Returns
set the MkErrorC to the status MK_OK, MK_CONTINUE or MK_ERROR

◆ MqConfigSetIoUds_RT()

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

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.

Parameters
[in]filename of a uds-socket-file (default: NULL)
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
Returns
set the MkErrorC to the status MK_OK, MK_CONTINUE or MK_ERROR

◆ MqConfigSetIsServer()

MQ_EXTERN void MqConfigSetIsServer ( MQ_CTX const  ctx,
bool  data 
)

set the MqSetupS::isServer value

◆ MqConfigSetIsString()

MQ_EXTERN void MqConfigSetIsString ( MQ_CTX const  ctx,
bool  data 
)

set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian

Attention
only the client can set this option... the server get this option from the client and using this function is ignored.

◆ MqConfigSetName_RT()

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

◆ MqConfigSetPkgsize()

MQ_EXTERN void MqConfigSetPkgsize ( MQ_CTX const  ctx,
MK_INT  data 
)

set the MqIoConfigS::pkgsize value

◆ MqConfigSetPostfix_RT()

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

The postfix is used for:

  1. MqConfigS::dispname initialization

The postfix is initialize with:

  1. an empty string
  2. the void MqConfigSetPostfix(MQ_CTX ctx, MK_STRN data) function
  3. the client postfix at server-startup
  4. the --postfix string option
Attention
if the --name string is explicitly set, then --prefix string and --postfix string have no effect

◆ MqConfigSetPrefix_RT()

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

The prefix is used for:

  1. MqConfigS::dispname initialization
  2. application-identifer if --ident-from prefix|factory is set to prefix (default)
  3. groupname in --config fileName is used as application-identifer

The prefix is initialize with:

  1. the basename of the executable if NO factory is used
  2. the MqFactoryS::originalIdent
  3. the void MqConfigSetPrefix(MQ_CTX ctx, MK_STRN data) or the void MqConfigSetName(MQ_CTX ctx, MK_STRN data) function
  4. the --name string OR the --prefix string option
Attention
if the --name string is explicitly set, then --prefix string and --postfix string have no effect

◆ MqConfigSetPrefixWithNoLock_RT()

MQ_EXTERN void MqConfigSetPrefixWithNoLock_RT ( MK_RT const  mkrt,
MQ_CTX const  ctx,
MK_STRN  data 
)

set the MqConfigS::prefix with low-priority

The following steps are performed :

  • only set if data is non NULL
  • only set if the MqConfigS::bitsprefixLOCK is false
  • after set the RCNs{ConfigS::bits}→prefixLOCK is not set to true
  • after set the RCNs{ConfigS::name} is updated

◆ MqConfigSetStartAs()

MQ_EXTERN enum MkErrorE MqConfigSetStartAs ( MQ_CTX const  ctx,
enum MqStartE  data 
)

set the MqConfigS::startAs value

◆ MqConfigSetStartAsString()

MQ_EXTERN enum MkErrorE MqConfigSetStartAsString ( MQ_CTX const  ctx,
MK_STRN  data 
)

set the MqConfigS::startAs value using string default, thread, fork or spawn

◆ MqConfigSetStorage_RT()

MQ_EXTERN void MqConfigSetStorage_RT ( MK_RT const  mkrt,
MQ_CTX const  ctx,
MK_STRN  data 
)

set the Storage value and cleanup old value

◆ MqConfigSetTimeout()

MQ_EXTERN void MqConfigSetTimeout ( MQ_CTX const  ctx,
MK_TIME_T  data 
)

set the MqIoConfigS::timeout value