| 218 | } |
| 219 | |
| 220 | void ZmqRpcClient::add_socket(socket_t* socket) { |
| 221 | unique_lock<mutex> lk{m_queue_mtx}; |
| 222 | m_avaliable_sockets.push(socket); |
| 223 | } |
| 224 | |
| 225 | void ZmqRpcClient::request(message_t& request, message_t& reply) { |
| 226 | socket_t* client = get_socket(); |