MqContextC - setup and manage a client-server-link … More...
Functions | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkGetParent (MqContextC_ARGS) |
Python: → C-API get the initial parent-context from a client/server link … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkConnect (MqContextC_ARGS) |
Python: → C-API re-connect a client-server-link after a server crash or a network downtime … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkCreate (MqContextC_ARGS) |
Python: → C-API make ctx to a parent-context and setup a new client-server-link … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkCreateChild (MqContextC_ARGS) |
Python: → C-API make a context to a child-context on-top of an existing parent-client-server-link … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkDelete (MqContextC_ARGS) |
Python: → C-API close the client-server-link … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkGetCtxId (MqContextC_ARGS) |
Python: → C-API get an identifier which is unique per parent-or-child-context … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkGetTargetIdent (MqContextC_ARGS) |
Python: → C-API get the ident of the link-target … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkIsConnected (MqContextC_ARGS) |
Python: → C-API is the context connected? … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkIsParent (MqContextC_ARGS) |
Python: → C-API is the context a parent-context? … | |
static OT_ProcRet | py_mqmsgque_MqContextC_LinkShutdown (MqContextC_ARGS) |
Python: → C-API shutdown the communication with a server | |
MqContextC - setup and manage a client-server-link …
The client-server-link connect two context, a client-parent-context and a server-parent-context. The link can be local (connect two context on the same host) or can be remote (connect two context on different hosts). On-Top the parent-context multiple child-context are allowed.
!on remote host! !on local host! server1---------x x----------server2 | | | | | child-context-1 child-context-2 | | | | | server parent-context-1-----x x-----parent-context-2 | | (MqConfigS::server) (example: MqConfigS::server --fork --uds … --file …) | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | | (--tcp) (--pipe, --uds, --tcp) | | parent-context-1-----x x-----parent-context-2 | | | | client | child-context-1 child-context-2 | | | | | x------------x--------client-------x-------------x !on local host!
Definition of a "client-context"
Definition of a "server-context"
Definition of a "parent-context"
Definition of a "child-context"
|
static |
Python:
→ C-API ctx.LinkConnect()
re-connect a client-server-link after a server crash or a network downtime …
Definition at line 1452 of file MqContextC_py.c.
|
static |
Python:
→ C-API ctx.LinkCreate(?args:MkBufferListC...=None?)
make ctx to a parent-context and setup a new client-server-link …
Definition at line 1466 of file MqContextC_py.c.
|
static |
Python:
→ C-API ctx.LinkCreateChild(parent:MqContextC, ?args:MkBufferListC...=None?)
make a context to a child-context on-top of an existing parent-client-server-link …
Definition at line 1482 of file MqContextC_py.c.
|
static |
Python:
→ C-API ctx.LinkDelete()
close the client-server-link …
Definition at line 1500 of file MqContextC_py.c.
|
static |
Python:
→ C-API int32 ctx.LinkGetCtxId()
get an identifier which is unique per parent-or-child-context …
Definition at line 1514 of file MqContextC_py.c.
|
static |
Python:
→ C-API MqContextC ctx.LinkGetParent()
get the initial parent-context from a client/server link …
Definition at line 1436 of file MqContextC_py.c.
|
static |
Python:
→ C-API string ctx.LinkGetTargetIdent()
get the ident of the link-target …
Definition at line 1527 of file MqContextC_py.c.
|
static |
Python:
→ C-API bool ctx.LinkIsConnected()
is the context connected? …
Definition at line 1540 of file MqContextC_py.c.
|
static |
Python:
→ C-API bool ctx.LinkIsParent()
is the context a parent-context? …
Definition at line 1553 of file MqContextC_py.c.
|
static |
Python:
→ C-API ctx.LinkShutdown()
shutdown the communication with a server
Definition at line 1566 of file MqContextC_py.c.