theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Get_RB_API

MqContextC - various function to 'get' the configuration-data from a contextMore...

+ Collaboration diagram for MqContextC_ConfigApi_Get_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoTcpL (MqContextC_ARGS)
  Ruby: MkBufferListC ctx.ConfigGetIoTcpL() C-API
get the configuration-data of the tcp-client-server-link as MkBufferListC
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetBuffersize (MqContextC_ARGS)
  Ruby: int32 ctx.ConfigGetBuffersize() C-API
get the minimum of the read/send buffersize of the socket
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIdentFrom (MqContextC_ARGS)
  Ruby: MqIdentE ctx.ConfigGetIdentFrom() C-API
get the MqConfigS::identFrom
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoPipe (MqContextC_ARGS)
  Ruby: int32 ctx.ConfigGetIoPipe() C-API
return the MqIoPipeConfigS
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoUds (MqContextC_ARGS)
  Ruby: string ctx.ConfigGetIoUds() C-API
return the MqIoUdsConfigS
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsParent (MqContextC_ARGS)
  Ruby: bool ctx.ConfigGetIsParent() C-API
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is nil
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsServer (MqContextC_ARGS)
  Ruby: bool ctx.ConfigGetIsServer() C-API
does the context object is a server ?
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsString (MqContextC_ARGS)
  Ruby: bool ctx.ConfigGetIsString() C-API
does the context object is using the string-mode ?
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetName (MqContextC_ARGS)
  Ruby: string ctx.ConfigGetName() C-API
get the name of the context object
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPkgsize (MqContextC_ARGS)
  Ruby: int32 ctx.ConfigGetPkgsize() C-API
get the maximun size of a BDY package
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPostfix (MqContextC_ARGS)
  Ruby: string ctx.ConfigGetPostfix() C-API
get the MqConfigS::dispPostfix
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPrefix (MqContextC_ARGS)
  Ruby: string ctx.ConfigGetPrefix() C-API
get the MqConfigS::dispPrefix
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStartAs (MqContextC_ARGS)
  Ruby: MqStartE ctx.ConfigGetStartAs() C-API
return the MqConfigS::startAs value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStatusIs (MqContextC_ARGS)
  Ruby: MqStatusIsEF ctx.ConfigGetStatusIs() C-API
return the MqContextS::statusIs value
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStorage (MqContextC_ARGS)
  Ruby: string ctx.ConfigGetStorage() C-API
get the storage of the context object
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetTimeout (MqContextC_ARGS)
  Ruby: MkTimeoutE|int32 ctx.ConfigGetTimeout() C-API
get the timeout value of the context object
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetConfigFile (MqContextC_ARGS)
  Ruby: ctx.ConfigSetConfigFile(filename:string) C-API
set the config-file and parse for well-known config-items
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoTcp (MqContextC_ARGS)
  Ruby: {host:string port:string myhost:string myport:string} ctx.ConfigGetIoTcp() C-API
get the configuration-data of the tcp-client-server-link
 

Detailed Description

MqContextC - various function to 'get' the configuration-data from a context

Function Documentation

◆ rbmqmsgque_MqContextC_ConfigGetBuffersize()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetBuffersize ( MqContextC_ARGS )
static

Ruby: int32 ctx.ConfigGetBuffersize() C-API
get the minimum of the read/send buffersize of the socket

Definition at line 561 of file MqContextC_rb.c.

561 {
566 end: MK_UNUSED /* LONG JUMP on error */
568}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_I32(nat)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define OT_SETUP_hdl
#define ConfigGetBuffersize_doc
#define MK_UNUSED
static MK_I32 MqConfigGetBuffersize(MQ_CTXN const ctx)
get the minimum of the read/send buffersize of the socket

◆ rbmqmsgque_MqContextC_ConfigGetIdentFrom()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIdentFrom ( MqContextC_ARGS )
static

Ruby: MqIdentE ctx.ConfigGetIdentFrom() C-API
get the MqConfigS::identFrom

Definition at line 571 of file MqContextC_rb.c.

571 {
576 end: MK_UNUSED /* LONG JUMP on error */
578}
#define OT_retObj_SET(val)
#define OT_NEW_Mq_enum_OBJ(typ, i)
#define ConfigGetIdentFrom_doc
static enum MqIdentE MqConfigGetIdentFrom(MQ_CTX const ctx)
get the MqConfigS::identFrom

◆ rbmqmsgque_MqContextC_ConfigGetIoPipe()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoPipe ( MqContextC_ARGS )
static

Ruby: int32 ctx.ConfigGetIoPipe() C-API
return the MqIoPipeConfigS

Definition at line 581 of file MqContextC_rb.c.

581 {
586 end: MK_UNUSED /* LONG JUMP on error */
588}
#define ConfigGetIoPipe_doc
static MQ_SOCK_HDL MqConfigGetIoPipe(MQ_CTX const ctx)
return the MqIoPipeConfigS

◆ rbmqmsgque_MqContextC_ConfigGetIoTcp()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoTcp ( MqContextC_ARGS )
static

Ruby: {host:string port:string myhost:string myport:string} ctx.ConfigGetIoTcp() C-API
get the configuration-data of the tcp-client-server-link

Definition at line 726 of file MqContextC_rb.c.

726 {
730 MK_STRN host_out;
731 MK_STRN port_out;
732 MK_STRN myhost_out;
733 MK_STRN myport_out;
734 MkErrorC_Check(hdl,MqConfigGetIoTcp (hdl, &host_out, &port_out, &myhost_out, &myport_out));
738 OT_retObj_APPEND(OT_TMP_STR_OBJ(myhost_out));
739 OT_retObj_APPEND(OT_TMP_STR_OBJ(myport_out));
740 end: MK_UNUSED /* LONG JUMP on error */
742}
#define OT_retObj_SET_List
#define OT_retObj_APPEND(var)
#define OT_TMP_STR_OBJ(val)
#define MkErrorC_Check(mng, PROC)
#define ConfigGetIoTcp_doc
const MK_STRB * MK_STRN
enum MkErrorE MqConfigGetIoTcp(MQ_CTX const ctx, MK_STRN *host_out, MK_STRN *port_out, MK_STRN *myhost_out, MK_STRN *myport_out)
get the configuration-data of the tcp-client-server-link …

◆ rbmqmsgque_MqContextC_ConfigGetIoTcpL()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoTcpL ( MqContextC_ARGS )
static

Ruby: MkBufferListC ctx.ConfigGetIoTcpL() C-API
get the configuration-data of the tcp-client-server-link as MkBufferListC

Definition at line 547 of file MqContextC_rb.c.

547 {
551 MK_BFL vals_out;
552 MkErrorC_Check(hdl,MqConfigGetIoTcpL (hdl, &vals_out));
553 OT_retObj_SET_BFL(vals_out);
554 end: MK_UNUSED /* LONG JUMP on error */
556}
#define OT_retObj_SET_BFL(nat)
#define ConfigGetIoTcpL_doc
#define MqConfigGetIoTcpL(...)

◆ rbmqmsgque_MqContextC_ConfigGetIoUds()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIoUds ( MqContextC_ARGS )
static

Ruby: string ctx.ConfigGetIoUds() C-API
return the MqIoUdsConfigS

Definition at line 591 of file MqContextC_rb.c.

591 {
596 end: MK_UNUSED /* LONG JUMP on error */
598}
#define OT_retObj_SET_STR(nat)
#define ConfigGetIoUds_doc
static MK_STRN MqConfigGetIoUds(MQ_CTXN const ctx)
return the MqIoUdsConfigS

◆ rbmqmsgque_MqContextC_ConfigGetIsParent()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsParent ( MqContextC_ARGS )
static

Ruby: bool ctx.ConfigGetIsParent() C-API
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is nil

Definition at line 601 of file MqContextC_rb.c.

601 {
606 end: MK_UNUSED /* LONG JUMP on error */
608}
#define OT_retObj_SET_BOL(nat)
#define ConfigGetIsParent_doc
static bool MqConfigGetIsParent(MQ_CTX const ctx)
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is nil

◆ rbmqmsgque_MqContextC_ConfigGetIsServer()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsServer ( MqContextC_ARGS )
static

Ruby: bool ctx.ConfigGetIsServer() C-API
does the context object is a server ?

Definition at line 611 of file MqContextC_rb.c.

611 {
616 end: MK_UNUSED /* LONG JUMP on error */
618}
#define ConfigGetIsServer_doc
static bool MqConfigGetIsServer(MQ_CTX const ctx)
does the context object is a server ?

◆ rbmqmsgque_MqContextC_ConfigGetIsString()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetIsString ( MqContextC_ARGS )
static

Ruby: bool ctx.ConfigGetIsString() C-API
does the context object is using the string-mode ?

Definition at line 621 of file MqContextC_rb.c.

621 {
626 end: MK_UNUSED /* LONG JUMP on error */
628}
#define ConfigGetIsString_doc
static bool MqConfigGetIsString(MQ_CTX const ctx)
does the context object is using the string-mode ?

◆ rbmqmsgque_MqContextC_ConfigGetName()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetName ( MqContextC_ARGS )
static

Ruby: string ctx.ConfigGetName() C-API
get the name of the context object

Definition at line 631 of file MqContextC_rb.c.

631 {
636 end: MK_UNUSED /* LONG JUMP on error */
638}
#define ConfigGetName_doc
static MK_STRN MqConfigGetName(MQ_CTXN const ctx)
get the name of the context object

◆ rbmqmsgque_MqContextC_ConfigGetPkgsize()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPkgsize ( MqContextC_ARGS )
static

Ruby: int32 ctx.ConfigGetPkgsize() C-API
get the maximun size of a BDY package

Definition at line 641 of file MqContextC_rb.c.

641 {
646 end: MK_UNUSED /* LONG JUMP on error */
648}
#define ConfigGetPkgsize_doc
static MK_I32 MqConfigGetPkgsize(MQ_CTXN const ctx)
get the maximun size of a BDY package

◆ rbmqmsgque_MqContextC_ConfigGetPostfix()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPostfix ( MqContextC_ARGS )
static

Ruby: string ctx.ConfigGetPostfix() C-API
get the MqConfigS::dispPostfix

Definition at line 651 of file MqContextC_rb.c.

651 {
656 end: MK_UNUSED /* LONG JUMP on error */
658}
#define ConfigGetPostfix_doc
static MK_STRN MqConfigGetPostfix(MQ_CTXN const ctx)
get the MqConfigS::dispPostfix

◆ rbmqmsgque_MqContextC_ConfigGetPrefix()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetPrefix ( MqContextC_ARGS )
static

Ruby: string ctx.ConfigGetPrefix() C-API
get the MqConfigS::dispPrefix

Definition at line 661 of file MqContextC_rb.c.

661 {
666 end: MK_UNUSED /* LONG JUMP on error */
668}
#define ConfigGetPrefix_doc
static MK_STRN MqConfigGetPrefix(MQ_CTXN const ctx)
get the MqConfigS::dispPrefix

◆ rbmqmsgque_MqContextC_ConfigGetStartAs()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStartAs ( MqContextC_ARGS )
static

Ruby: MqStartE ctx.ConfigGetStartAs() C-API
return the MqConfigS::startAs value

Definition at line 671 of file MqContextC_rb.c.

671 {
676 end: MK_UNUSED /* LONG JUMP on error */
678}
#define ConfigGetStartAs_doc
static enum MqStartE MqConfigGetStartAs(MQ_CTX const ctx)
return the MqConfigS::startAs value

◆ rbmqmsgque_MqContextC_ConfigGetStatusIs()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStatusIs ( MqContextC_ARGS )
static

Ruby: MqStatusIsEF ctx.ConfigGetStatusIs() C-API
return the MqContextS::statusIs value

Definition at line 681 of file MqContextC_rb.c.

681 {
686 end: MK_UNUSED /* LONG JUMP on error */
688}
#define ConfigGetStatusIs_doc
static enum MqStatusIsEF MqConfigGetStatusIs(MQ_CTX const ctx)
return the MqContextS::statusIs value

◆ rbmqmsgque_MqContextC_ConfigGetStorage()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetStorage ( MqContextC_ARGS )
static

Ruby: string ctx.ConfigGetStorage() C-API
get the storage of the context object

Definition at line 691 of file MqContextC_rb.c.

691 {
696 end: MK_UNUSED /* LONG JUMP on error */
698}
#define ConfigGetStorage_doc
static MK_STRN MqConfigGetStorage(MQ_CTXN const ctx)
get the storage of the context object

◆ rbmqmsgque_MqContextC_ConfigGetTimeout()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigGetTimeout ( MqContextC_ARGS )
static

Ruby: MkTimeoutE|int32 ctx.ConfigGetTimeout() C-API
get the timeout value of the context object

Definition at line 701 of file MqContextC_rb.c.

701 {
706 end: MK_UNUSED /* LONG JUMP on error */
708}
#define OT_retObj_SET_LONG(nat)
#define ConfigGetTimeout_doc
static MK_TIME_T MqConfigGetTimeout(MQ_CTXN const ctx)
get the timeout value of the context object

◆ rbmqmsgque_MqContextC_ConfigSetConfigFile()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetConfigFile ( MqContextC_ARGS )
static

Ruby: ctx.ConfigSetConfigFile(filename:string) C-API
set the config-file and parse for well-known config-items

Definition at line 711 of file MqContextC_rb.c.

711 {
714 MK_STRN filename = 0;
717 MkErrorC_Check(hdl,MqConfigSetConfigFile (hdl, filename));
719 end: MK_UNUSED /* LONG JUMP on error */
721}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_CHECK_STRN(val)
#define ConfigSetConfigFile_doc
#define MqConfigSetConfigFile(...)