Commit 0cc7d86b authored by fred's avatar fred
Browse files

fixed zerogw payload api

parent 1aadda9e
......@@ -42,7 +42,7 @@ Zerogw::Zerogw(QString basedirectory, int port, QObject *parent) : m_basedirecto
z_push_api->setsockopt (ZMQ_RCVHWM, &hwm1, sizeof (hwm1));
QString directory = "ipc://" + m_basedirectory + "/http";
z_push_api->bind(directory.toLatin1());
z_push_api->connect(directory.toLatin1());
......
......@@ -605,7 +605,7 @@ Zpull::Zpull(QString base_directory, zmq::context_t *a_context) : m_context(a_co
m_socket_http->setsockopt(ZMQ_RCVHWM, &hwm, sizeof (hwm));
directory = "ipc://" + base_directory + "/http";
m_socket_http->connect(directory.toLatin1());
m_socket_http->bind(directory.toLatin1());
m_socket_workers = new zmq::socket_t (*m_context, ZMQ_PULL);
m_socket_workers->setsockopt(ZMQ_SNDHWM, &hwm, sizeof (hwm));
......@@ -1932,7 +1932,7 @@ Zeromq::Zeromq(QString base_directory) : m_base_directory(base_directory)
m_http_mutex = new QMutex();
m_xmpp_mutex = new QMutex();
m_context = new zmq::context_t(1);
m_context = new zmq::context_t(2);
_singleton = this;
pull_timer = new QTimer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment