MqContextC - setup and manage a client-server-link … More...
Collaboration diagram for MqContextC_Link_CC_API: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"
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"
C++: → C-API ctx.LinkCreate(MkBufferListC* args = NULL)
make ctx to a parent-context and setup a new client-server-link …
C++: → C-API ctx.LinkCreateChild(MqContextC* parent, MkBufferListC* args = NULL)
make a context to a child-context on-top of an existing parent-client-server-link …
Definition at line 158 of file LibMqMsgque_cc.cc.
Here is the caller graph for this function:
|
inline |
C++: → C-API ctx.LinkConnect()
re-connect a client-server-link after a server crash or a network downtime …
Definition at line 758 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API ctx.LinkCreate(MkBufferListC* args = NULL)
make ctx to a parent-context and setup a new client-server-link …
Definition at line 773 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API ctx.LinkCreate(MkBufferListC* args = NULL)
make ctx to a parent-context and setup a new client-server-link …
Definition at line 765 of file MqContextC_inline_cc.hh.
Here is the caller graph for this function:
|
inline |
C++: → C-API ctx.LinkCreateChild(MqContextC* parent, MkBufferListC* args = NULL)
make a context to a child-context on-top of an existing parent-client-server-link …
Definition at line 790 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API ctx.LinkCreateChild(MqContextC* parent, MkBufferListC* args = NULL)
make a context to a child-context on-top of an existing parent-client-server-link …
Definition at line 781 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API ctx.LinkDelete()
close the client-server-link …
Definition at line 799 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API MK_NUM ctx.LinkGetCtxId()
get an identifier which is unique per parent-or-child-context …
Definition at line 805 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API MqContextC* ctx.LinkGetParent()
get the initial parent-context from a client/server link …
Definition at line 749 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API MK_STRN ctx.LinkGetTargetIdent()
get the ident of the link-target …
Definition at line 812 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API MK_BOOL ctx.LinkIsConnected()
is the context connected? …
Definition at line 819 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API MK_BOOL ctx.LinkIsParent()
is the context a parent-context? …
Definition at line 826 of file MqContextC_inline_cc.hh.
|
inline |
C++: → C-API ctx.LinkShutdown()
shutdown the communication with a server
Definition at line 833 of file MqContextC_inline_cc.hh.