![]() |
|
PhoenixZMQ
6.0.0
Library which integrates zeromq use
|
Include dependency graph for phoenix_zmq.cpp:Go to the source code of this file.
Functions | |
| void | pzmq_closeServerSocket (zmq::socket_t *&socket) |
| Close the given server socket. | |
| zmq::socket_t * | pzmq_createClientSocket (zmq::context_t &context, const std::string &address, size_t port, int type, int nbBufferMessage, int bufferSizeByte, size_t threadAffinity, ssize_t dataRate) |
| Add a client socket to the manager. | |
| zmq::socket_t * | pzmq_createClientSocket (zmq::context_t &context, int type, const std::string &address, size_t port) |
| Create a client socket to be used by the SocketManagerZMQ. | |
| zmq::socket_t * | pzmq_createServerSocket (zmq::context_t &context, int type, size_t port) |
| Create a server socket to be used by the SocketManagerZMQ. | |
| zmq::socket_t * | pzmq_createServerSocket (zmq::context_t &context, size_t port, int type, int nbBufferMessage, int bufferSizeByte, size_t threadAffinity, ssize_t dataRate) |
| Add a server socket to the manager. | |
| void | pzmq_setBufferSize (zmq::socket_t *socket, int type, int nbBufferMessage, int dataRate, size_t bufferSizeByte) |
| Set the size of the buffer to send messages. | |
| void | pzmq_setDataRate (zmq::socket_t *socket, int type, int dataRate) |
| Set the data rate of the socket. | |
| void | pzmq_setNbMessageBuffer (zmq::socket_t *socket, int nbBufferMessage) |
| Set the number of messages in the messages buffer. | |
| void | pzmq_setRecvBufferSize (zmq::socket_t *socket, int bufferSizeByte) |
| Set the size of the buffer to received messages. | |
| void | pzmq_setSendBufferSize (zmq::socket_t *socket, int bufferSizeByte) |
| Set the size of the buffer to send messages. | |
| void | pzmq_setThreadAffinity (zmq::socket_t *socket, size_t threadAffinity) |
| Set the thread affinity of zmq. | |
| void pzmq_closeServerSocket | ( | zmq::socket_t *& | socket | ) |
Close the given server socket.
| [out] | socket | : pointer to the server socket to be closed (will be set to NULL at then end of the function) |
Definition at line 114 of file phoenix_zmq.cpp.
| zmq::socket_t * pzmq_createClientSocket | ( | zmq::context_t & | context, |
| const std::string & | address, | ||
| size_t | port, | ||
| int | type, | ||
| int | nbBufferMessage, | ||
| int | bufferSizeByte, | ||
| size_t | threadAffinity, | ||
| ssize_t | dataRate ) |
Add a client socket to the manager.
| context | : zmq context where to create socket |
| address | : address of the server to be connected to |
| port | : port to be used |
| 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 98 of file phoenix_zmq.cpp.
References pzmq_createClientSocket(), pzmq_setBufferSize(), and pzmq_setThreadAffinity().
Here is the call graph for this function:| zmq::socket_t * pzmq_createClientSocket | ( | zmq::context_t & | context, |
| int | type, | ||
| const std::string & | address, | ||
| size_t | port ) |
Create a client socket to be used by the SocketManagerZMQ.
| context | : zeromq context which defines the number of thread to be used in the data transfert |
| type | : type of the socket (ZMQ_PULL, ZMQ_PUSH, etc) |
| address | : address of the socket (example localhost or 127.0.0.1) |
| port | : port to be used |
Definition at line 18 of file phoenix_zmq.cpp.
Referenced by PZmqSocket::createClientSocket(), and pzmq_createClientSocket().
Here is the caller graph for this function:| zmq::socket_t * pzmq_createServerSocket | ( | zmq::context_t & | context, |
| int | type, | ||
| size_t | port ) |
Create a server socket to be used by the SocketManagerZMQ.
| context | : zeromq context which defines the number of thread to be used in the data transfert |
| type | : type of the socket (ZMQ_PULL, ZMQ_PUSH, etc) |
| port | : port to be used |
Definition at line 49 of file phoenix_zmq.cpp.
Referenced by PZmqSocket::createServerSocket(), and pzmq_createServerSocket().
Here is the caller graph for this function:| zmq::socket_t * pzmq_createServerSocket | ( | zmq::context_t & | context, |
| size_t | port, | ||
| int | type, | ||
| int | nbBufferMessage, | ||
| int | bufferSizeByte, | ||
| size_t | threadAffinity, | ||
| ssize_t | dataRate ) |
Add a server socket to the manager.
| context | : zmq context where to create socket |
| port | : port to be used |
| 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 74 of file phoenix_zmq.cpp.
References pzmq_createServerSocket(), pzmq_setBufferSize(), and pzmq_setThreadAffinity().
Here is the call graph for this function:| void pzmq_setBufferSize | ( | zmq::socket_t * | socket, |
| int | type, | ||
| int | nbBufferMessage, | ||
| int | dataRate, | ||
| size_t | bufferSizeByte ) |
Set the size of the buffer to send messages.
| [out] | socket | : socket to be modified |
| type | : type of the socket to be used | |
| nbBufferMessage | : number of messages to be buffered | |
| dataRate | : expected data rate (in kilobytes per second) | |
| bufferSizeByte | : size of the zmq buffer in bytes |
Definition at line 207 of file phoenix_zmq.cpp.
References pzmq_setDataRate(), pzmq_setNbMessageBuffer(), pzmq_setRecvBufferSize(), and pzmq_setSendBufferSize().
Referenced by pzmq_createClientSocket(), and pzmq_createServerSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| void pzmq_setDataRate | ( | zmq::socket_t * | socket, |
| int | type, | ||
| int | dataRate ) |
Set the data rate of the socket.
| [out] | socket | : socket to be modified |
| type | : type of the socket to be used | |
| dataRate | : expected data rate (in kilobytes per second) |
Definition at line 143 of file phoenix_zmq.cpp.
Referenced by pzmq_setBufferSize().
Here is the caller graph for this function:| void pzmq_setNbMessageBuffer | ( | zmq::socket_t * | socket, |
| int | nbBufferMessage ) |
Set the number of messages in the messages buffer.
| [out] | socket | : socket to be modified |
| nbBufferMessage | : number of messages to be buffered |
Definition at line 126 of file phoenix_zmq.cpp.
Referenced by pzmq_setBufferSize().
Here is the caller graph for this function:| void pzmq_setRecvBufferSize | ( | zmq::socket_t * | socket, |
| int | bufferSizeByte ) |
Set the size of the buffer to received messages.
| [out] | socket | : socket to be modified |
| bufferSizeByte | : size of the zmq buffer in bytes |
Definition at line 159 of file phoenix_zmq.cpp.
Referenced by pzmq_setBufferSize().
Here is the caller graph for this function:| void pzmq_setSendBufferSize | ( | zmq::socket_t * | socket, |
| int | bufferSizeByte ) |
Set the size of the buffer to send messages.
| [out] | socket | : socket to be modified |
| bufferSizeByte | : size of the zmq buffer in bytes |
Definition at line 174 of file phoenix_zmq.cpp.
Referenced by pzmq_setBufferSize().
Here is the caller graph for this function:| void pzmq_setThreadAffinity | ( | zmq::socket_t * | socket, |
| size_t | threadAffinity ) |
Set the thread affinity of zmq.
| socket | : socket to be modified |
| 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) |
Definition at line 189 of file phoenix_zmq.cpp.
Referenced by pzmq_createClientSocket(), and pzmq_createServerSocket().
Here is the caller graph for this function: