![]() |
|
PhoenixZMQ
6.0.0
Library which integrates zeromq use
|
Backend to use Mock library with PAbtractSocket. More...
#include <PZmqBackend.h>
Public Types | |
| typedef zmq::message_t | Message |
| Define the type of message used by the PAbstractSocketManager. | |
| typedef PZmqParam | Param |
| Define the type of extra parameters which can be used to create a Socket used by the PAbstractSocketManager. | |
| typedef PZmqSocket | Socket |
| Define the socket of the backend used by the PAbstractSocketManager. | |
Public Member Functions | |
| bool | createClientSocket (Socket &socket, const PSocketParam &socketParam, const PZmqParam ¶m) |
| Create a client socket. | |
| bool | createServerSocket (Socket &socket, const PSocketParam &socketParam, const PZmqParam ¶m) |
| Create a server socket. | |
| void | mockToMsg (Message &msg, DataStreamMsg &mockMsg) |
| Copy mock message data into current backend message. | |
| void | msgToMock (DataStreamMsg &mockMsg, const Message &msg) |
| Copy current backend message data into mock message. | |
| PZmqBackend () | |
| Default constructor of PZmqBackend setting the number of threads for zmq I/O to 1. | |
Static Public Member Functions | |
| static Param | client () |
| Create a client parameter. | |
| static Param | server () |
| Create a server parameter. | |
Private Attributes | |
| zmq::context_t | p_context |
| Context ZMQ. | |
Backend to use Mock library with PAbtractSocket.
Definition at line 67 of file PZmqBackend.h.
| typedef zmq::message_t PZmqBackend::Message |
Define the type of message used by the PAbstractSocketManager.
Definition at line 72 of file PZmqBackend.h.
| typedef PZmqParam PZmqBackend::Param |
Define the type of extra parameters which can be used to create a Socket used by the PAbstractSocketManager.
Definition at line 74 of file PZmqBackend.h.
| typedef PZmqSocket PZmqBackend::Socket |
Define the socket of the backend used by the PAbstractSocketManager.
Definition at line 70 of file PZmqBackend.h.
| PZmqBackend::PZmqBackend | ( | ) |
Default constructor of PZmqBackend setting the number of threads for zmq I/O to 1.
Definition at line 248 of file PZmqBackend.cpp.
References p_context.
|
static |
Create a client parameter.
Definition at line 257 of file PZmqBackend.cpp.
References pzmq_createParamClient().
Here is the call graph for this function:| bool PZmqBackend::createClientSocket | ( | PZmqBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const PZmqParam & | param ) |
Create a client socket.
| [out] | socket | : socket to be created |
| socketParam | : parameters of the server (hostname, port), the client has to connect to | |
| port | : port to be used for the connection | |
| param | : extra customisable parameters for the creation of the socket (depends on the backend) |
Definition at line 275 of file PZmqBackend.cpp.
References PZmqSocket::createClientSocket(), and p_context.
Here is the call graph for this function:| bool PZmqBackend::createServerSocket | ( | PZmqBackend::Socket & | socket, |
| const PSocketParam & | socketParam, | ||
| const PZmqParam & | param ) |
Create a server socket.
| [out] | socket | : socket to be created |
| socketParam | : parameters of the server (hostname, port), the client has to connect to | |
| param | : extra customisable parameters for the creation of the socket (depends on the backend) |
Definition at line 285 of file PZmqBackend.cpp.
References PZmqSocket::createServerSocket(), and p_context.
Here is the call graph for this function:| void PZmqBackend::mockToMsg | ( | PZmqBackend::Message & | msg, |
| DataStreamMsg & | mockMsg ) |
Copy mock message data into current backend message.
| [out] | msg | : message of the current backend to be converted |
| mockMsg | : mock message |
Definition at line 303 of file PZmqBackend.cpp.
| void PZmqBackend::msgToMock | ( | DataStreamMsg & | mockMsg, |
| const Message & | msg ) |
Copy current backend message data into mock message.
| [out] | mockMsg | : mock message |
| msg | : message of the current backend to be converted |
Definition at line 293 of file PZmqBackend.cpp.
|
static |
Create a server parameter.
Definition at line 264 of file PZmqBackend.cpp.
References pzmq_createParamServer().
Here is the call graph for this function:
|
private |
Context ZMQ.
Definition at line 89 of file PZmqBackend.h.
Referenced by createClientSocket(), createServerSocket(), and PZmqBackend().