theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Set_PY_API

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

+ Collaboration diagram for MqContextC_ConfigApi_Set_PY_API:

Functions

static OT_ProcRet pymqmsgque_MqContextC_ConfigCheckStartAs (MqContextC_ARGS)
  Python: bool ctx.ConfigCheckStartAs(data:MqStartE) C-API
check if MqConfigS::startAs can be set to data
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetAllDebug (MqContextC_ARGS)
  Python: ctx.ConfigSetAllDebug(data:int32) C-API
set the MkRuntimeS::debug value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetBuffersize (MqContextC_ARGS)
  Python: ctx.ConfigSetBuffersize(data:int32) C-API
set the MqIoConfigS::buffersize value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetDaemon (MqContextC_ARGS)
  Python: ctx.ConfigSetDaemon(pidfile:string) C-API
start the server-context as daemon …
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIdentFrom (MqContextC_ARGS)
  Python: ctx.ConfigSetIdentFrom(data:MqIdentE) C-API
set the MqConfigS::identFrom value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIgnoreExit (MqContextC_ARGS)
  Python: ctx.ConfigSetIgnoreExit(data:bool) C-API
set the MqSetupS::ignoreExit value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoPipe (MqContextC_ARGS)
  Python: ctx.ConfigSetIoPipe(fh:int32) C-API
set the pipe configuration data …
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoTcp (MqContextC_ARGS)
  Python: ctx.ConfigSetIoTcp(?host:string="None"?, ?port:string="None"?, ?myhost:string="None"?, ?myport:string="None"?) C-API
configure a context to use a tcp-client-server-link
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoTcpL (MqContextC_ARGS)
  Python: ctx.ConfigSetIoTcpL(vals:MkBufferListC) C-API
configure a context to use a tcp-client-server-link
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoUds (MqContextC_ARGS)
  Python: ctx.ConfigSetIoUds(file:string) C-API
configure a context to use a uds-client-server-link
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIsServer (MqContextC_ARGS)
  Python: ctx.ConfigSetIsServer(data:bool) C-API
set the MqSetupS::isServer value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIsString (MqContextC_ARGS)
  Python: ctx.ConfigSetIsString(data:bool) C-API
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetName (MqContextC_ARGS)
  Python: ctx.ConfigSetName(data:string) C-API
set the MqConfigS::dispName value and cleanup old value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPkgsize (MqContextC_ARGS)
  Python: ctx.ConfigSetPkgsize(data:int32) C-API
set the MqIoConfigS::pkgsize value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPostfix (MqContextC_ARGS)
  Python: ctx.ConfigSetPostfix(data:string) C-API
set the client-part (2) of the application-identifer MqConfigS::dispName
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPrefix (MqContextC_ARGS)
  Python: ctx.ConfigSetPrefix(data:string) C-API
set the server-part (1) of the application-identifer MqConfigS::dispName
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStartAs (MqContextC_ARGS)
  Python: ctx.ConfigSetStartAs(data:MqStartE) C-API
set the MqConfigS::startAs value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStartAsString (MqContextC_ARGS)
  Python: ctx.ConfigSetStartAsString(data:string) C-API
set the MqConfigS::startAs value using string default, thread, fork or spawn
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStorage (MqContextC_ARGS)
  Python: ctx.ConfigSetStorage(data:string) C-API
set the Storage value and cleanup old value
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetTimeout (MqContextC_ARGS)
  Python: 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

◆ pymqmsgque_MqContextC_ConfigCheckStartAs()

static OT_ProcRet pymqmsgque_MqContextC_ConfigCheckStartAs ( MqContextC_ARGS )
static

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

Definition at line 1007 of file MqContextC_py.c.

1007 {
1010 enum MqStartE data = 0;
1014 goto end;
1015 error:
1017 end:
1019}
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_ONEARG(d)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define ConfigCheckStartAs_doc
#define OT_SETUP_hdl
#define error
Definition high_lng.h:339
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)

◆ pymqmsgque_MqContextC_ConfigSetAllDebug()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetAllDebug ( MqContextC_ARGS )
static

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

Definition at line 1022 of file MqContextC_py.c.

1022 {
1025 MK_I32 data = 0;
1028 MkErrorC_Check(hdl,MqConfigSetAllDebug (hdl, data));
1030 goto end;
1031 error:
1033 end:
1035}
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_None
#define MkErrorC_Check(mng, PROC)
#define ConfigSetAllDebug_doc
signed int MK_I32
#define MqConfigSetAllDebug(...)

◆ pymqmsgque_MqContextC_ConfigSetBuffersize()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetBuffersize ( MqContextC_ARGS )
static

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

Definition at line 1038 of file MqContextC_py.c.

1038 {
1041 MK_I32 data = 0;
1044 MqConfigSetBuffersize (hdl, data);
1046 goto end;
1047 error:
1049 end:
1051}
#define ConfigSetBuffersize_doc
void MqConfigSetBuffersize(MQ_CTX const ctx, MK_I32 data)
set the MqIoConfigS::buffersize value

◆ pymqmsgque_MqContextC_ConfigSetDaemon()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetDaemon ( MqContextC_ARGS )
static

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

Definition at line 1054 of file MqContextC_py.c.

1054 {
1057 MK_STRN pidfile = 0;
1060 MkErrorC_Check(hdl,MqConfigSetDaemon (hdl, pidfile));
1062 goto end;
1063 error:
1065 end:
1067}
#define OT_CHECK_STRN(val)
#define ConfigSetDaemon_doc
const MK_STRB * MK_STRN
#define MqConfigSetDaemon(...)

◆ pymqmsgque_MqContextC_ConfigSetIdentFrom()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIdentFrom ( MqContextC_ARGS )
static

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

Definition at line 1070 of file MqContextC_py.c.

1070 {
1073 enum MqIdentE data = 0;
1076 MqConfigSetIdentFrom (hdl, data);
1078 goto end;
1079 error:
1081 end:
1083}
#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 …

◆ pymqmsgque_MqContextC_ConfigSetIgnoreExit()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIgnoreExit ( MqContextC_ARGS )
static

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

Definition at line 1086 of file MqContextC_py.c.

1086 {
1089 MK_BOOL data = 0;
1092 MqConfigSetIgnoreExit (hdl, data);
1094 goto end;
1095 error:
1097 end:
1099}
#define OT_CHECK_bool(val)
#define ConfigSetIgnoreExit_doc
bool MK_BOOL
void MqConfigSetIgnoreExit(MQ_CTX const ctx, bool data)
set the MqSetupS::ignoreExit value

◆ pymqmsgque_MqContextC_ConfigSetIoPipe()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoPipe ( MqContextC_ARGS )
static

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

Definition at line 1102 of file MqContextC_py.c.

1102 {
1105 MQ_SOCK_HDL fh = 0;
1108 MkErrorC_Check(hdl,MqConfigSetIoPipe (hdl, fh));
1110 goto end;
1111 error:
1113 end:
1115}
#define ConfigSetIoPipe_doc
#define MqConfigSetIoPipe(...)
int MQ_SOCK_HDL

◆ pymqmsgque_MqContextC_ConfigSetIoTcp()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoTcp ( MqContextC_ARGS )
static

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

Definition at line 1118 of file MqContextC_py.c.

1118 {
1121 MK_STRN host = NULL;
1123 MK_STRN port = NULL;
1125 MK_STRN myhost = NULL;
1127 MK_STRN myport = NULL;
1130 MkErrorC_Check(hdl,MqConfigSetIoTcp (hdl, host, port, myhost, myport));
1132 goto end;
1133 error:
1135 end:
1137}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_OPTIONAL(val)
#define ConfigSetIoTcp_doc
#define MqConfigSetIoTcp(...)

◆ pymqmsgque_MqContextC_ConfigSetIoTcpL()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoTcpL ( MqContextC_ARGS )
static

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

Definition at line 1140 of file MqContextC_py.c.

1140 {
1143 MkBufferListCreateTLS_T(vals,10);
1146 MkErrorC_Check(hdl,MqConfigSetIoTcpL (hdl, vals));
1148 goto end;
1149 error:
1151 end:
1153}
#define ConfigSetIoTcpL_doc
#define MkBufferListCreateTLS_T(name, num)
#define MK_NULL_NO
#define MqConfigSetIoTcpL(...)
#define OT_CHECK_BFL(val, nullB)

◆ pymqmsgque_MqContextC_ConfigSetIoUds()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIoUds ( MqContextC_ARGS )
static

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

Definition at line 1156 of file MqContextC_py.c.

1156 {
1159 MK_STRN file = 0;
1162 MkErrorC_Check(hdl,MqConfigSetIoUds (hdl, file));
1164 goto end;
1165 error:
1167 end:
1169}
#define ConfigSetIoUds_doc
#define MqConfigSetIoUds(...)

◆ pymqmsgque_MqContextC_ConfigSetIsServer()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIsServer ( MqContextC_ARGS )
static

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

Definition at line 1172 of file MqContextC_py.c.

1172 {
1175 MK_BOOL data = 0;
1178 MqConfigSetIsServer (hdl, data);
1180 goto end;
1181 error:
1183 end:
1185}
#define ConfigSetIsServer_doc
void MqConfigSetIsServer(MQ_CTX const ctx, bool data)
set the MqSetupS::isServer value

◆ pymqmsgque_MqContextC_ConfigSetIsString()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetIsString ( MqContextC_ARGS )
static

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

Definition at line 1188 of file MqContextC_py.c.

1188 {
1191 MK_BOOL data = 0;
1194 MqConfigSetIsString (hdl, data);
1196 goto end;
1197 error:
1199 end:
1201}
#define ConfigSetIsString_doc
void MqConfigSetIsString(MQ_CTX const ctx, bool data)
set the MqConfigS::native value 'S'string or 'L'owEndian or 'B'igEndian

◆ pymqmsgque_MqContextC_ConfigSetName()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetName ( MqContextC_ARGS )
static

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

Definition at line 1204 of file MqContextC_py.c.

1204 {
1207 MK_STRN data = 0;
1210 MqConfigSetName (hdl, data);
1212 goto end;
1213 error:
1215 end:
1217}
#define ConfigSetName_doc
#define MqConfigSetName(...)

◆ pymqmsgque_MqContextC_ConfigSetPkgsize()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPkgsize ( MqContextC_ARGS )
static

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

Definition at line 1220 of file MqContextC_py.c.

1220 {
1223 MK_I32 data = 0;
1226 MqConfigSetPkgsize (hdl, data);
1228 goto end;
1229 error:
1231 end:
1233}
#define ConfigSetPkgsize_doc
void MqConfigSetPkgsize(MQ_CTX const ctx, MK_I32 data)
set the MqIoConfigS::pkgsize value

◆ pymqmsgque_MqContextC_ConfigSetPostfix()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPostfix ( MqContextC_ARGS )
static

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

Definition at line 1236 of file MqContextC_py.c.

1236 {
1239 MK_STRN data = 0;
1242 MqConfigSetPostfix (hdl, data);
1244 goto end;
1245 error:
1247 end:
1249}
#define ConfigSetPostfix_doc
#define MqConfigSetPostfix(...)

◆ pymqmsgque_MqContextC_ConfigSetPrefix()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetPrefix ( MqContextC_ARGS )
static

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

Definition at line 1252 of file MqContextC_py.c.

1252 {
1255 MK_STRN data = 0;
1258 MqConfigSetPrefix (hdl, data);
1260 goto end;
1261 error:
1263 end:
1265}
#define ConfigSetPrefix_doc
#define MqConfigSetPrefix(...)

◆ pymqmsgque_MqContextC_ConfigSetStartAs()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStartAs ( MqContextC_ARGS )
static

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

Definition at line 1268 of file MqContextC_py.c.

1268 {
1271 enum MqStartE data = 0;
1274 MkErrorC_Check(hdl,MqConfigSetStartAs (hdl, data));
1276 goto end;
1277 error:
1279 end:
1281}
#define ConfigSetStartAs_doc
enum MkErrorE MqConfigSetStartAs(MQ_CTX const ctx, enum MqStartE data)
set the MqConfigS::startAs value

◆ pymqmsgque_MqContextC_ConfigSetStartAsString()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStartAsString ( MqContextC_ARGS )
static

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

Definition at line 1284 of file MqContextC_py.c.

1284 {
1287 MK_STRN data = 0;
1292 goto end;
1293 error:
1295 end:
1297}
#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

◆ pymqmsgque_MqContextC_ConfigSetStorage()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetStorage ( MqContextC_ARGS )
static

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

Definition at line 1300 of file MqContextC_py.c.

1300 {
1303 MK_STRN data = 0;
1306 MqConfigSetStorage (hdl, data);
1308 goto end;
1309 error:
1311 end:
1313}
#define ConfigSetStorage_doc
#define MqConfigSetStorage(...)

◆ pymqmsgque_MqContextC_ConfigSetTimeout()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetTimeout ( MqContextC_ARGS )
static

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

Definition at line 1316 of file MqContextC_py.c.

1316 {
1319 MK_TIME_T data = 0;
1322 MqConfigSetTimeout (hdl, data);
1324 goto end;
1325 error:
1327 end:
1329}
#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)