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
0d70fefc
Commit
0d70fefc
authored
Mar 29, 2013
by
fred
Browse files
zapi
parent
92919536
Changes
2
Hide whitespace changes
Inline
Side-by-side
zeromq.cpp
View file @
0d70fefc
...
...
@@ -489,6 +489,8 @@ void Zapi::receive_http_payload()
std
::
cout
<<
"!!!!!!! BEFORE FORWARD PAYLOAD !!!!"
<<
std
::
endl
;
//emit forward_payload(data.copy());
std
::
cout
<<
"!!!!!!! AFTER FORWARD PAYLOAD !!!!"
<<
std
::
endl
;
}
else
...
...
@@ -503,6 +505,15 @@ void Zapi::receive_http_payload()
std
::
cout
<<
"error on data BSON : "
<<
e
.
what
()
<<
std
::
endl
;
goto
flush_socket
;
}
BSONObj
payload
=
BSON
(
"status"
<<
"ACK"
);
m_message
->
rebuild
(
payload
.
objsize
());
memcpy
(
m_message
->
data
(),
(
char
*
)
payload
.
objdata
(),
payload
.
objsize
());
m_socket_http
->
send
(
*
m_message
);
}
}
...
...
zeromq.h
View file @
0d70fefc
...
...
@@ -145,6 +145,7 @@ private:
zmq
::
context_t
*
m_context
;
zmq
::
socket_t
*
m_socket_http
;
QMutex
*
m_mutex_http
;
zmq
::
message_t
*
m_message
;
signals:
void
forward_payload
(
BSONObj
data
);
...
...
Write
Preview
Supports
Markdown
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