Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fredix
ncs
Commits
0cc7d86b
Commit
0cc7d86b
authored
Apr 05, 2013
by
fred
Browse files
fixed zerogw payload api
parent
1aadda9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
zerogw.cpp
View file @
0cc7d86b
...
...
@@ -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
());
...
...
zeromq.cpp
View file @
0cc7d86b
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment