theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Set_RB_API

MqContextC - various function to 'set' the configuration-data in a contextMore...

+ Collaboration diagram for MqContextC_ConfigApi_Set_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_ConfigCheckStartAs (MqContextC_ARGS)
  Ruby: bool ctx.ConfigCheckStartAs(data:MqStartE) C-API
check if MqConfigS::startAs can be set to data
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetAllDebug (MqContextC_ARGS)
  Ruby: ctx.ConfigSetAllDebug(data:int32) C-API
set the MkRuntimeS::debug value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetBuffersize (MqContextC_ARGS)
  Ruby: ctx.ConfigSetBuffersize(data:int32) C-API
set the MqIoConfigS::buffersize value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetDaemon (MqContextC_ARGS)
  Ruby: ctx.ConfigSetDaemon(pidfile:string) C-API
start the server-context as daemon …
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIdentFrom (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIdentFrom(data:MqIdentE) C-API
set the MqConfigS::identFrom value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIgnoreExit (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIgnoreExit(data:bool) C-API
set the MqSetupS::ignoreExit value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoPipe (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIoPipe(fh:int32) C-API
set the pipe configuration data …
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoTcp (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIoTcp(?host:string="nil"?, ?port:string="nil"?, ?myhost:string="nil"?, ?myport:string="nil"?) C-API
configure a context to use a tcp-client-server-link
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoTcpL (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIoTcpL(vals:MkBufferListC) C-API
configure a context to use a tcp-client-server-link
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoUds (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIoUds(file:string) C-API
configure a context to use a uds-client-server-link
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIsServer (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIsServer(data:bool) C-API
set the MqSetupS::isServer value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIsString (MqContextC_ARGS)
  Ruby: ctx.ConfigSetIsString(data:bool) C-API
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetName (MqContextC_ARGS)
  Ruby: ctx.ConfigSetName(data:string) C-API
set the MqConfigS::dispName value and cleanup old value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPkgsize (MqContextC_ARGS)
  Ruby: ctx.ConfigSetPkgsize(data:int32) C-API
set the MqIoConfigS::pkgsize value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPostfix (MqContextC_ARGS)
  Ruby: ctx.ConfigSetPostfix(data:string) C-API
set the client-part (2) of the application-identifer MqConfigS::dispName
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPrefix (MqContextC_ARGS)
  Ruby: ctx.ConfigSetPrefix(data:string) C-API
set the server-part (1) of the application-identifer MqConfigS::dispName
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStartAs (MqContextC_ARGS)
  Ruby: ctx.ConfigSetStartAs(data:MqStartE) C-API
set the MqConfigS::startAs value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStartAsString (MqContextC_ARGS)
  Ruby: ctx.ConfigSetStartAsString(data:string) C-API
set the MqConfigS::startAs value using string default, thread, fork or spawn
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStorage (MqContextC_ARGS)
  Ruby: ctx.ConfigSetStorage(data:string) C-API
set the Storage value and cleanup old value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetTimeout (MqContextC_ARGS)
  Ruby: ctx.ConfigSetTimeout(data:MkTimeoutE|int32) C-API
set the MqIoConfigS::timeout value
 

Detailed Description

MqContextC - various function to 'set' the configuration-data in a context

Function Documentation

◆ rbmqmsgque_MqContextC_ConfigCheckStartAs()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigCheckStartAs ( MqContextC_ARGS )
static

Ruby: bool ctx.ConfigCheckStartAs(data:MqStartE) C-API
check if MqConfigS::startAs can be set to data

Definition at line 843 of file MqContextC_rb.c.

843 {
846 enum MqStartE data = 0;
850 end: MK_UNUSED /* LONG JUMP on error */
852}
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define ConfigCheckStartAs_doc
#define OT_SETUP_hdl
#define MK_UNUSED
bool MqConfigCheckStartAs(MQ_CTX const ctx, enum MqStartE data)
check if MqConfigS::startAs can be set to data
MqStartE
User preferences on HOWTO start a new entity.
#define OT_CHECK_ENUM(ename, val)

◆ rbmqmsgque_MqContextC_ConfigSetAllDebug()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetAllDebug ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetAllDebug(data:int32) C-API
set the MkRuntimeS::debug value

Definition at line 855 of file MqContextC_rb.c.

855 {
858 MK_I32 data = 0;
861 MkErrorC_Check(hdl,MqConfigSetAllDebug (hdl, data));
863 end: MK_UNUSED /* LONG JUMP on error */
865}
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_None
#define MkErrorC_Check(mng, PROC)
#define ConfigSetAllDebug_doc
signed int MK_I32
#define MqConfigSetAllDebug(...)

◆ rbmqmsgque_MqContextC_ConfigSetBuffersize()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetBuffersize ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetBuffersize(data:int32) C-API
set the MqIoConfigS::buffersize value

Definition at line 868 of file MqContextC_rb.c.

868 {
871 MK_I32 data = 0;
874 MqConfigSetBuffersize (hdl, data);
876 end: MK_UNUSED /* LONG JUMP on error */
878}
#define ConfigSetBuffersize_doc
void MqConfigSetBuffersize(MQ_CTX const ctx, MK_I32 data)
set the MqIoConfigS::buffersize value

◆ rbmqmsgque_MqContextC_ConfigSetDaemon()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetDaemon ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetDaemon(pidfile:string) C-API
start the server-context as daemon …

Definition at line 881 of file MqContextC_rb.c.

881 {
884 MK_STRN pidfile = 0;
887 MkErrorC_Check(hdl,MqConfigSetDaemon (hdl, pidfile));
889 end: MK_UNUSED /* LONG JUMP on error */
891}
#define OT_CHECK_STRN(val)
#define ConfigSetDaemon_doc
const MK_STRB * MK_STRN
#define MqConfigSetDaemon(...)

◆ rbmqmsgque_MqContextC_ConfigSetIdentFrom()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIdentFrom ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIdentFrom(data:MqIdentE) C-API
set the MqConfigS::identFrom value

Definition at line 894 of file MqContextC_rb.c.

894 {
897 enum MqIdentE data = 0;
900 MqConfigSetIdentFrom (hdl, data);
902 end: MK_UNUSED /* LONG JUMP on error */
904}
#define ConfigSetIdentFrom_doc
void MqConfigSetIdentFrom(MQ_CTX const ctx, enum MqIdentE data)
set the MqConfigS::identFrom value
MqIdentE
identify the application using prefix (default) or factory …

◆ rbmqmsgque_MqContextC_ConfigSetIgnoreExit()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIgnoreExit ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIgnoreExit(data:bool) C-API
set the MqSetupS::ignoreExit value

Definition at line 907 of file MqContextC_rb.c.

907 {
910 MK_BOOL data = 0;
913 MqConfigSetIgnoreExit (hdl, data);
915 end: MK_UNUSED /* LONG JUMP on error */
917}
#define OT_CHECK_bool(val)
#define ConfigSetIgnoreExit_doc
bool MK_BOOL
void MqConfigSetIgnoreExit(MQ_CTX const ctx, bool data)
set the MqSetupS::ignoreExit value

◆ rbmqmsgque_MqContextC_ConfigSetIoPipe()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoPipe ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIoPipe(fh:int32) C-API
set the pipe configuration data …

Definition at line 920 of file MqContextC_rb.c.

920 {
923 MQ_SOCK_HDL fh = 0;
926 MkErrorC_Check(hdl,MqConfigSetIoPipe (hdl, fh));
928 end: MK_UNUSED /* LONG JUMP on error */
930}
#define ConfigSetIoPipe_doc
#define MqConfigSetIoPipe(...)
int MQ_SOCK_HDL

◆ rbmqmsgque_MqContextC_ConfigSetIoTcp()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoTcp ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIoTcp(?host:string="nil"?, ?port:string="nil"?, ?myhost:string="nil"?, ?myport:string="nil"?) C-API
configure a context to use a tcp-client-server-link

Definition at line 933 of file MqContextC_rb.c.

933 {
936 MK_STRN host = NULL;
938 MK_STRN port = NULL;
940 MK_STRN myhost = NULL;
942 MK_STRN myport = NULL;
945 MkErrorC_Check(hdl,MqConfigSetIoTcp (hdl, host, port, myhost, myport));
947 end: MK_UNUSED /* LONG JUMP on error */
949}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_OPTIONAL(val)
#define ConfigSetIoTcp_doc
#define MqConfigSetIoTcp(...)

◆ rbmqmsgque_MqContextC_ConfigSetIoTcpL()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoTcpL ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIoTcpL(vals:MkBufferListC) C-API
configure a context to use a tcp-client-server-link

Definition at line 952 of file MqContextC_rb.c.

952 {
958 MkErrorC_Check(hdl,MqConfigSetIoTcpL (hdl, vals));
960 end: MK_UNUSED /* LONG JUMP on error */
962}
#define ConfigSetIoTcpL_doc
#define MkBufferListCreateTLS_T(name, num)
#define MK_NULL_NO
#define MqConfigSetIoTcpL(...)
#define OT_CHECK_BFL(val, nullB)

◆ rbmqmsgque_MqContextC_ConfigSetIoUds()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIoUds ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIoUds(file:string) C-API
configure a context to use a uds-client-server-link

Definition at line 965 of file MqContextC_rb.c.

965 {
968 MK_STRN file = 0;
971 MkErrorC_Check(hdl,MqConfigSetIoUds (hdl, file));
973 end: MK_UNUSED /* LONG JUMP on error */
975}
#define ConfigSetIoUds_doc
#define MqConfigSetIoUds(...)

◆ rbmqmsgque_MqContextC_ConfigSetIsServer()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIsServer ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIsServer(data:bool) C-API
set the MqSetupS::isServer value

Definition at line 978 of file MqContextC_rb.c.

978 {
981 MK_BOOL data = 0;
984 MqConfigSetIsServer (hdl, data);
986 end: MK_UNUSED /* LONG JUMP on error */
988}
#define ConfigSetIsServer_doc
void MqConfigSetIsServer(MQ_CTX const ctx, bool data)
set the MqSetupS::isServer value

◆ rbmqmsgque_MqContextC_ConfigSetIsString()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetIsString ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetIsString(data:bool) C-API
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian

Definition at line 991 of file MqContextC_rb.c.

991 {
994 MK_BOOL data = 0;
997 MqConfigSetIsString (hdl, data);
999 end: MK_UNUSED /* LONG JUMP on error */
1001}
#define ConfigSetIsString_doc
void MqConfigSetIsString(MQ_CTX const ctx, bool data)
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian

◆ rbmqmsgque_MqContextC_ConfigSetName()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetName ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetName(data:string) C-API
set the MqConfigS::dispName value and cleanup old value

Definition at line 1004 of file MqContextC_rb.c.

1004 {
1007 MK_STRN data = 0;
1010 MqConfigSetName (hdl, data);
1012 end: MK_UNUSED /* LONG JUMP on error */
1014}
#define ConfigSetName_doc
#define MqConfigSetName(...)

◆ rbmqmsgque_MqContextC_ConfigSetPkgsize()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPkgsize ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetPkgsize(data:int32) C-API
set the MqIoConfigS::pkgsize value

Definition at line 1017 of file MqContextC_rb.c.

1017 {
1020 MK_I32 data = 0;
1023 MqConfigSetPkgsize (hdl, data);
1025 end: MK_UNUSED /* LONG JUMP on error */
1027}
#define ConfigSetPkgsize_doc
void MqConfigSetPkgsize(MQ_CTX const ctx, MK_I32 data)
set the MqIoConfigS::pkgsize value

◆ rbmqmsgque_MqContextC_ConfigSetPostfix()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPostfix ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetPostfix(data:string) C-API
set the client-part (2) of the application-identifer MqConfigS::dispName

Definition at line 1030 of file MqContextC_rb.c.

1030 {
1033 MK_STRN data = 0;
1036 MqConfigSetPostfix (hdl, data);
1038 end: MK_UNUSED /* LONG JUMP on error */
1040}
#define ConfigSetPostfix_doc
#define MqConfigSetPostfix(...)

◆ rbmqmsgque_MqContextC_ConfigSetPrefix()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetPrefix ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetPrefix(data:string) C-API
set the server-part (1) of the application-identifer MqConfigS::dispName

Definition at line 1043 of file MqContextC_rb.c.

1043 {
1046 MK_STRN data = 0;
1049 MqConfigSetPrefix (hdl, data);
1051 end: MK_UNUSED /* LONG JUMP on error */
1053}
#define ConfigSetPrefix_doc
#define MqConfigSetPrefix(...)

◆ rbmqmsgque_MqContextC_ConfigSetStartAs()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStartAs ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetStartAs(data:MqStartE) C-API
set the MqConfigS::startAs value

Definition at line 1056 of file MqContextC_rb.c.

1056 {
1059 enum MqStartE data = 0;
1062 MkErrorC_Check(hdl,MqConfigSetStartAs (hdl, data));
1064 end: MK_UNUSED /* LONG JUMP on error */
1066}
#define ConfigSetStartAs_doc
enum MkErrorE MqConfigSetStartAs(MQ_CTX const ctx, enum MqStartE data)
set the MqConfigS::startAs value

◆ rbmqmsgque_MqContextC_ConfigSetStartAsString()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStartAsString ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetStartAsString(data:string) C-API
set the MqConfigS::startAs value using string default, thread, fork or spawn

Definition at line 1069 of file MqContextC_rb.c.

1069 {
1072 MK_STRN data = 0;
1077 end: MK_UNUSED /* LONG JUMP on error */
1079}
#define ConfigSetStartAsString_doc
enum MkErrorE MqConfigSetStartAsString(MQ_CTX const ctx, MK_STRN data)
set the MqConfigS::startAs value using string default, thread, fork or spawn

◆ rbmqmsgque_MqContextC_ConfigSetStorage()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetStorage ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetStorage(data:string) C-API
set the Storage value and cleanup old value

Definition at line 1082 of file MqContextC_rb.c.

1082 {
1085 MK_STRN data = 0;
1088 MqConfigSetStorage (hdl, data);
1090 end: MK_UNUSED /* LONG JUMP on error */
1092}
#define ConfigSetStorage_doc
#define MqConfigSetStorage(...)

◆ rbmqmsgque_MqContextC_ConfigSetTimeout()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetTimeout ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetTimeout(data:MkTimeoutE|int32) C-API
set the MqIoConfigS::timeout value

Definition at line 1095 of file MqContextC_rb.c.

1095 {
1098 MK_TIME_T data = 0;
1101 MqConfigSetTimeout (hdl, data);
1103 end: MK_UNUSED /* LONG JUMP on error */
1105}
#define ConfigSetTimeout_doc
time_t MK_TIME_T
void MqConfigSetTimeout(MQ_CTX const ctx, MK_TIME_T data)
set the MqIoConfigS::timeout value
#define OT_CHECK_TIME_T(val)