![]() |
|
PhoenixZMQ
6.0.0
Library which integrates zeromq use
|
#include <string>#include "PSocketFlag.h"#include "phoenix_generic_mock.h"#include "phoenix_data_stream.h"#include "phoenix_zmq.h"#include "PZmqBackend_impl.h"
Include dependency graph for PZmqBackend.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | PZmqBackend |
| Backend to use Mock library with PAbtractSocket. More... | |
| struct | PZmqParam |
| Set of parameters to be passed to create a socket with zmq backend. More... | |
| class | PZmqSocket |
| PhoenixSocket API bridge to ZMQ socket. More... | |
Functions | |
| PRecvStatus::PRecvStatus | checkRecvStatus (zmq::recv_result_t res) |
| Check the recv result and convert it into PRecvStatus. | |
| PSendStatus::PSendStatus | checkSendStatus (zmq::send_result_t res) |
| Check the send result and convert it into PSendStatus. | |
| PZmqParam | pzmq_createParamClient (int type, int nbBufferMessage=10000, int bufferSizeByte=1000000, size_t threadAffinity=0lu, ssize_t dataRate=200000l) |
| Create param for a client socket. | |
| PZmqParam | pzmq_createParamServer (int type, int nbBufferMessage=10000, int bufferSizeByte=1000000, size_t threadAffinity=0lu, ssize_t dataRate=200000l) |
| Create param for a client socket. | |
| template<typename T> | |
| std::string | statusToStr (T status) |
| Convert PSendStatus into string. | |
| PRecvStatus::PRecvStatus checkRecvStatus | ( | zmq::recv_result_t | res | ) |
Check the recv result and convert it into PRecvStatus.
| res | : result of the zmq recv |
ZMQ socket recv has a bit of a strange implementation:
Definition at line 46 of file PZmqBackend.cpp.
Referenced by PZmqSocket::recvMsg().
Here is the caller graph for this function:| PSendStatus::PSendStatus checkSendStatus | ( | zmq::send_result_t | res | ) |
Check the send result and convert it into PSendStatus.
| res | : result of the zmq send |
ZMQ socket send has a bit of a strange implementation:
Definition at line 20 of file PZmqBackend.cpp.
Referenced by PZmqSocket::sendMsg().
Here is the caller graph for this function:| PZmqParam pzmq_createParamClient | ( | int | type, |
| int | nbBufferMessage, | ||
| int | bufferSizeByte, | ||
| size_t | threadAffinity, | ||
| ssize_t | dataRate ) |
Create param for a client socket.
| context | : zmq context where to create socket |
| type | : type of the connection (ZMQ_PULL, ZMQ_PUSH, etc) |
| nbBufferMessage | : number of messages to be buffered |
| bufferSizeByte | : size of the zmq buffer in bytes |
| threadAffinity | : bit mask which determines which threads from the 0MQ I/O thread pool associated with the socket's context shall handle newly created connections (1 : means first, 2 : means second, 3 : means first and second, etc) |
| dataRate | : expected data rate (in kilobytes per second) |
Definition at line 88 of file PZmqBackend.cpp.
References PZmqParam::bufferSizeByte, PZmqParam::dataRate, PZmqParam::nbBufferMessage, PZmqParam::threadAffinity, and PZmqParam::type.
Referenced by PZmqBackend::client().
Here is the caller graph for this function:| PZmqParam pzmq_createParamServer | ( | int | type, |
| int | nbBufferMessage, | ||
| int | bufferSizeByte, | ||
| size_t | threadAffinity, | ||
| ssize_t | dataRate ) |
Create param for a client socket.
| type | : type of the connection (ZMQ_PULL, ZMQ_PUSH, etc) |
| nbBufferMessage | : number of messages to be buffered |
| bufferSizeByte | : size of the zmq buffer in bytes |
| threadAffinity | : bit mask which determines which threads from the 0MQ I/O thread pool associated with the socket's context shall handle newly created connections (1 : means first, 2 : means second, 3 : means first and second, etc) |
| dataRate | : expected data rate (in kilobytes per second) |
Definition at line 108 of file PZmqBackend.cpp.
References PZmqParam::bufferSizeByte, PZmqParam::dataRate, PZmqParam::nbBufferMessage, PZmqParam::threadAffinity, and PZmqParam::type.
Referenced by PZmqBackend::server().
Here is the caller graph for this function:| std::string statusToStr | ( | T | status | ) |
Convert PSendStatus into string.
| status | : PSendStatus to be converted |
Definition at line 19 of file PZmqBackend_impl.h.