![]() |
|
PhoenixZMQ
7.2.0
Library which integrates zeromq use
|
Backend to use Mock library with PAbstractSocket. 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. | |
| PZmqSocketGenerator () | |
| Default constructor of PZmqSocketGenerator setting the number of threads for zmq I/O to 1. | |
Static Public Member Functions | |
| static Param | client () |
| Create a client parameter. | |
| static void | mockToMsg (Message &msg, DataStreamMsg &mockMsg) |
| Copy mock message data into current backend message. | |
| static void | msgToMock (DataStreamMsg &mockMsg, const Message &msg) |
| Copy current backend message data into mock message. | |
| static Param | server () |
| Create a server parameter. | |
Private Attributes | |
| zmq::context_t | p_context |
| Context ZMQ. | |
Backend to use Mock library with PAbstractSocket.
Definition at line 69 of file PZmqBackend.h.
| typedef zmq::message_t PZmqSocketGenerator::Message |
Define the type of message used by the PAbstractSocketManager.
Definition at line 74 of file PZmqBackend.h.
| typedef PZmqParam PZmqSocketGenerator::Param |
Define the type of extra parameters which can be used to create a Socket used by the PAbstractSocketManager.
Definition at line 76 of file PZmqBackend.h.
Define the socket of the backend used by the PAbstractSocketManager.
Definition at line 72 of file PZmqBackend.h.
| PZmqSocketGenerator::PZmqSocketGenerator | ( | ) |
Default constructor of PZmqSocketGenerator setting the number of threads for zmq I/O to 1.
Definition at line 243 of file PZmqBackend.cpp.
References p_context.
|
static |
Create a client parameter.
Definition at line 252 of file PZmqBackend.cpp.
References pzmq_createParamClient().
Here is the call graph for this function:| bool PZmqSocketGenerator::createClientSocket | ( | PZmqSocketGenerator::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 270 of file PZmqBackend.cpp.
References PZmqSocket::createClientSocket(), and p_context.
Here is the call graph for this function:| bool PZmqSocketGenerator::createServerSocket | ( | PZmqSocketGenerator::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 280 of file PZmqBackend.cpp.
References PZmqSocket::createServerSocket(), and p_context.
Here is the call graph for this function:
|
static |
Copy mock message data into current backend message.
| [out] | msg | : message of the current backend to be converted |
| mockMsg | : mock message |
Definition at line 298 of file PZmqBackend.cpp.
|
static |
Copy current backend message data into mock message.
| [out] | mockMsg | : mock message |
| msg | : message of the current backend to be converted |
Definition at line 288 of file PZmqBackend.cpp.
|
static |
Create a server parameter.
Definition at line 259 of file PZmqBackend.cpp.
References pzmq_createParamServer().
Here is the call graph for this function:
|
private |
Context ZMQ.
Definition at line 91 of file PZmqBackend.h.
Referenced by createClientSocket(), createServerSocket(), and PZmqSocketGenerator().