Loading...
Searching...
No Matches
MqContextC_ConfigApi_Get_PY_API

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

+ Collaboration diagram for MqContextC_ConfigApi_Get_PY_API:

Functions

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoTcpL (MqContextC_ARGS)
  Python: MkBufferListC ctx.ConfigGetIoTcpL() C-API
get the configuration-data of the tcp-client-server-link as MkBufferListC
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetBuffersize (MqContextC_ARGS)
  Python: int32 ctx.ConfigGetBuffersize() C-API
get the minimum of the read/send buffersize of the socket
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIdentFrom (MqContextC_ARGS)
  Python: MqIdentE ctx.ConfigGetIdentFrom() C-API
get the MqConfigS::identFrom
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoPipe (MqContextC_ARGS)
  Python: int32 ctx.ConfigGetIoPipe() C-API
return the MqIoPipeConfigS
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoUds (MqContextC_ARGS)
  Python: string ctx.ConfigGetIoUds() C-API
return the MqIoUdsConfigS
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsParent (MqContextC_ARGS)
  Python: bool ctx.ConfigGetIsParent() C-API
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is None
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsServer (MqContextC_ARGS)
  Python: bool ctx.ConfigGetIsServer() C-API
does the context object is a server ?
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsString (MqContextC_ARGS)
  Python: bool ctx.ConfigGetIsString() C-API
does the context object is using the string-mode ?
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetName (MqContextC_ARGS)
  Python: string ctx.ConfigGetName() C-API
get the name of the context object
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPkgsize (MqContextC_ARGS)
  Python: int32 ctx.ConfigGetPkgsize() C-API
get the maximun size of a BDY package
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPostfix (MqContextC_ARGS)
  Python: string ctx.ConfigGetPostfix() C-API
get the MqConfigS::postfix
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPrefix (MqContextC_ARGS)
  Python: string ctx.ConfigGetPrefix() C-API
get the MqConfigS::prefix
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStartAs (MqContextC_ARGS)
  Python: MqStartE ctx.ConfigGetStartAs() C-API
return the MqConfigS::startAs value
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStatusIs (MqContextC_ARGS)
  Python: MqStatusIsEF ctx.ConfigGetStatusIs() C-API
return the MqContextS::statusIs value
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStorage (MqContextC_ARGS)
  Python: string ctx.ConfigGetStorage() C-API
get the storage of the context object
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetTimeout (MqContextC_ARGS)
  Python: MkTimeoutE|int32 ctx.ConfigGetTimeout() C-API
get the timeout value of the context object
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetConfigFile (MqContextC_ARGS)
  Python: ctx.ConfigSetConfigFile(filename:string) C-API
set the config-file and parse for well-known config-items
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoTcp (MqContextC_ARGS)
  Python: {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

◆ py_mqmsgque_MqContextC_ConfigGetBuffersize()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetBuffersize ( MqContextC_ARGS )
static

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

Definition at line 662 of file MqContextC_py.c.

662 {
664 OT_SETUP_NOARG(ConfigGetBuffersize_doc)
665 OT_CHECK_NOARGS
666 OT_retObj_SET_I32(MqConfigGetBuffersize (hdl))
667 goto end;
668 error:
669 OT_retObj_SET_Error
670 end:
672}
#define OT_SETUP_hdl
#define ConfigGetBuffersize_doc
#define OT_retObj_RETURN
#define error
MK_ATTR_HDL MK_I32 MqConfigGetBuffersize(MQ_CTXN const ctx)
get the minimum of the read/send buffersize of the socket

◆ py_mqmsgque_MqContextC_ConfigGetIdentFrom()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIdentFrom ( MqContextC_ARGS )
static

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

Definition at line 675 of file MqContextC_py.c.

675 {
677 OT_SETUP_NOARG(ConfigGetIdentFrom_doc)
678 OT_CHECK_NOARGS
679 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(IdentE,MqConfigGetIdentFrom (hdl)))
680 goto end;
681 error:
682 OT_retObj_SET_Error
683 end:
685}
#define ConfigGetIdentFrom_doc
MK_ATTR_HDL enum MqIdentE MqConfigGetIdentFrom(MQ_CTX const ctx)
get the MqConfigS::identFrom

◆ py_mqmsgque_MqContextC_ConfigGetIoPipe()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoPipe ( MqContextC_ARGS )
static

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

Definition at line 688 of file MqContextC_py.c.

688 {
690 OT_SETUP_NOARG(ConfigGetIoPipe_doc)
691 OT_CHECK_NOARGS
692 OT_retObj_SET_I32(MqConfigGetIoPipe (hdl))
693 goto end;
694 error:
695 OT_retObj_SET_Error
696 end:
698}
#define ConfigGetIoPipe_doc
MK_ATTR_HDL MQ_SOCK_HDL MqConfigGetIoPipe(MQ_CTX const ctx)
return the MqIoPipeConfigS

◆ py_mqmsgque_MqContextC_ConfigGetIoTcp()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoTcp ( MqContextC_ARGS )
static

Python: {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 875 of file MqContextC_py.c.

875 {
877 OT_SETUP_NOARG(ConfigGetIoTcp_doc)
878 OT_CHECK_NOARGS
879 MK_STRN host_out;
880 MK_STRN port_out;
881 MK_STRN myhost_out;
882 MK_STRN myport_out;
883 MkErrorC_Check(hdl,MqConfigGetIoTcp (hdl, &host_out, &port_out, &myhost_out, &myport_out));
884 OT_retObj_SET_List
885 OT_retObj_APPEND(OT_TMP_STR_OBJ(host_out))
886 OT_retObj_APPEND(OT_TMP_STR_OBJ(port_out))
887 OT_retObj_APPEND(OT_TMP_STR_OBJ(myhost_out))
888 OT_retObj_APPEND(OT_TMP_STR_OBJ(myport_out))
889 goto end;
890 error:
891 OT_retObj_SET_Error
892 end:
894}
#define ConfigGetIoTcp_doc
const MK_STRB * MK_STRN
MQ_EXTERN enum MkErrorE MqConfigGetIoTcp(MQ_CTX const ctx, MK_STRN *host_out, MK_STRN *port_out, MK_STRN *myhost_out, MK_STRN *myport_out) MK_ATTR_HDL
get the configuration-data of the tcp-client-server-link …

◆ py_mqmsgque_MqContextC_ConfigGetIoTcpL()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoTcpL ( MqContextC_ARGS )
static

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

Definition at line 645 of file MqContextC_py.c.

645 {
647 OT_SETUP_NOARG(ConfigGetIoTcpL_doc)
648 OT_CHECK_NOARGS
649 MK_BFL vals_out;
650 MkErrorC_Check(hdl,MqConfigGetIoTcpL (hdl, &vals_out));
651 OT_retObj_SET_BFL(vals_out)
652 goto end;
653 error:
654 OT_retObj_SET_Error
655 end:
657}
#define ConfigGetIoTcpL_doc
MQ_EXTERN enum MkErrorE MqConfigGetIoTcpL(MQ_CTX const ctx, MK_BFL *vals_out) MK_ATTR_HDL
get the configuration-data of the tcp-client-server-link as MkBufferListC …

◆ py_mqmsgque_MqContextC_ConfigGetIoUds()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIoUds ( MqContextC_ARGS )
static

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

Definition at line 701 of file MqContextC_py.c.

701 {
703 OT_SETUP_NOARG(ConfigGetIoUds_doc)
704 OT_CHECK_NOARGS
705 OT_retObj_SET_STR(MqConfigGetIoUds (hdl))
706 goto end;
707 error:
708 OT_retObj_SET_Error
709 end:
711}
#define ConfigGetIoUds_doc
MK_ATTR_HDL MK_STRN MqConfigGetIoUds(MQ_CTXN const ctx)
return the MqIoUdsConfigS

◆ py_mqmsgque_MqContextC_ConfigGetIsParent()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsParent ( MqContextC_ARGS )
static

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

Definition at line 714 of file MqContextC_py.c.

714 {
716 OT_SETUP_NOARG(ConfigGetIsParent_doc)
717 OT_CHECK_NOARGS
718 OT_retObj_SET_BOL(MqConfigGetIsParent (hdl))
719 goto end;
720 error:
721 OT_retObj_SET_Error
722 end:
724}
#define ConfigGetIsParent_doc
MK_ATTR_HDL bool MqConfigGetIsParent(MQ_CTX const ctx)
does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is Non...

◆ py_mqmsgque_MqContextC_ConfigGetIsServer()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsServer ( MqContextC_ARGS )
static

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

Definition at line 727 of file MqContextC_py.c.

727 {
729 OT_SETUP_NOARG(ConfigGetIsServer_doc)
730 OT_CHECK_NOARGS
731 OT_retObj_SET_BOL(MqConfigGetIsServer (hdl))
732 goto end;
733 error:
734 OT_retObj_SET_Error
735 end:
737}
#define ConfigGetIsServer_doc
MK_ATTR_HDL bool MqConfigGetIsServer(MQ_CTX const ctx)
does the context object is a server ?

◆ py_mqmsgque_MqContextC_ConfigGetIsString()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetIsString ( MqContextC_ARGS )
static

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

Definition at line 740 of file MqContextC_py.c.

740 {
742 OT_SETUP_NOARG(ConfigGetIsString_doc)
743 OT_CHECK_NOARGS
744 OT_retObj_SET_BOL(MqConfigGetIsString (hdl))
745 goto end;
746 error:
747 OT_retObj_SET_Error
748 end:
750}
#define ConfigGetIsString_doc
MK_ATTR_HDL bool MqConfigGetIsString(MQ_CTX const ctx)
does the context object is using the string-mode ?

◆ py_mqmsgque_MqContextC_ConfigGetName()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetName ( MqContextC_ARGS )
static

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

Definition at line 753 of file MqContextC_py.c.

753 {
755 OT_SETUP_NOARG(ConfigGetName_doc)
756 OT_CHECK_NOARGS
757 OT_retObj_SET_STR(MqConfigGetName (hdl))
758 goto end;
759 error:
760 OT_retObj_SET_Error
761 end:
763}
#define ConfigGetName_doc
MK_ATTR_HDL MK_STRN MqConfigGetName(MQ_CTXN const ctx)
get the name of the context object

◆ py_mqmsgque_MqContextC_ConfigGetPkgsize()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPkgsize ( MqContextC_ARGS )
static

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

Definition at line 766 of file MqContextC_py.c.

766 {
768 OT_SETUP_NOARG(ConfigGetPkgsize_doc)
769 OT_CHECK_NOARGS
770 OT_retObj_SET_I32(MqConfigGetPkgsize (hdl))
771 goto end;
772 error:
773 OT_retObj_SET_Error
774 end:
776}
#define ConfigGetPkgsize_doc
MK_ATTR_HDL MK_I32 MqConfigGetPkgsize(MQ_CTXN const ctx)
get the maximun size of a BDY package

◆ py_mqmsgque_MqContextC_ConfigGetPostfix()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPostfix ( MqContextC_ARGS )
static

Python: string ctx.ConfigGetPostfix() C-API
get the MqConfigS::postfix

Definition at line 779 of file MqContextC_py.c.

779 {
781 OT_SETUP_NOARG(ConfigGetPostfix_doc)
782 OT_CHECK_NOARGS
783 OT_retObj_SET_STR(MqConfigGetPostfix (hdl))
784 goto end;
785 error:
786 OT_retObj_SET_Error
787 end:
789}
#define ConfigGetPostfix_doc
MK_ATTR_HDL MK_STRN MqConfigGetPostfix(MQ_CTXN const ctx)
get the MqConfigS::postfix

◆ py_mqmsgque_MqContextC_ConfigGetPrefix()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetPrefix ( MqContextC_ARGS )
static

Python: string ctx.ConfigGetPrefix() C-API
get the MqConfigS::prefix

Definition at line 792 of file MqContextC_py.c.

792 {
794 OT_SETUP_NOARG(ConfigGetPrefix_doc)
795 OT_CHECK_NOARGS
796 OT_retObj_SET_STR(MqConfigGetPrefix (hdl))
797 goto end;
798 error:
799 OT_retObj_SET_Error
800 end:
802}
#define ConfigGetPrefix_doc
MK_ATTR_HDL MK_STRN MqConfigGetPrefix(MQ_CTXN const ctx)
get the MqConfigS::prefix

◆ py_mqmsgque_MqContextC_ConfigGetStartAs()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStartAs ( MqContextC_ARGS )
static

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

Definition at line 805 of file MqContextC_py.c.

805 {
807 OT_SETUP_NOARG(ConfigGetStartAs_doc)
808 OT_CHECK_NOARGS
809 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StartE,MqConfigGetStartAs (hdl)))
810 goto end;
811 error:
812 OT_retObj_SET_Error
813 end:
815}
#define ConfigGetStartAs_doc
MK_ATTR_HDL enum MqStartE MqConfigGetStartAs(MQ_CTX const ctx)
return the MqConfigS::startAs value

◆ py_mqmsgque_MqContextC_ConfigGetStatusIs()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStatusIs ( MqContextC_ARGS )
static

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

Definition at line 818 of file MqContextC_py.c.

818 {
820 OT_SETUP_NOARG(ConfigGetStatusIs_doc)
821 OT_CHECK_NOARGS
822 OT_retObj_SET(OT_NEW_Mq_enum_OBJ(StatusIsEF,MqConfigGetStatusIs (hdl)))
823 goto end;
824 error:
825 OT_retObj_SET_Error
826 end:
828}
#define ConfigGetStatusIs_doc
MK_ATTR_HDL enum MqStatusIsEF MqConfigGetStatusIs(MQ_CTX const ctx)
return the MqContextS::statusIs value

◆ py_mqmsgque_MqContextC_ConfigGetStorage()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetStorage ( MqContextC_ARGS )
static

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

Definition at line 831 of file MqContextC_py.c.

831 {
833 OT_SETUP_NOARG(ConfigGetStorage_doc)
834 OT_CHECK_NOARGS
835 OT_retObj_SET_STR(MqConfigGetStorage (hdl))
836 goto end;
837 error:
838 OT_retObj_SET_Error
839 end:
841}
#define ConfigGetStorage_doc
MK_ATTR_HDL MK_STRN MqConfigGetStorage(MQ_CTXN const ctx)
get the storage of the context object

◆ py_mqmsgque_MqContextC_ConfigGetTimeout()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigGetTimeout ( MqContextC_ARGS )
static

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

Definition at line 844 of file MqContextC_py.c.

844 {
846 OT_SETUP_NOARG(ConfigGetTimeout_doc)
847 OT_CHECK_NOARGS
848 OT_retObj_SET_LONG(MqConfigGetTimeout (hdl))
849 goto end;
850 error:
851 OT_retObj_SET_Error
852 end:
854}
#define ConfigGetTimeout_doc
MK_ATTR_HDL MK_TIME_T MqConfigGetTimeout(MQ_CTXN const ctx)
get the timeout value of the context object

◆ py_mqmsgque_MqContextC_ConfigSetConfigFile()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetConfigFile ( MqContextC_ARGS )
static

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

Definition at line 857 of file MqContextC_py.c.

857 {
859 OT_SETUP_ONEARG(ConfigSetConfigFile_doc)
860 MK_STRN filename = 0;
861 OT_CHECK_REQUIRED(OT_CHECK_STRN (filename))
862 OT_CHECK_NOARGS
863 MkErrorC_Check(hdl,MqConfigSetConfigFile (hdl, filename));
864 OT_retObj_SET_None
865 goto end;
866 error:
867 OT_retObj_SET_Error
868 end:
870}
#define ConfigSetConfigFile_doc
#define MqConfigSetConfigFile(...)