Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
d4d65da2
Commit
d4d65da2
authored
Jul 12, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1131 from rodgert/master
Added ZMQ_SHARED message option to zmq_msg_get()
parents
5dc4066d
3497244c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
AUTHORS
AUTHORS
+1
-0
zmq.h
include/zmq.h
+1
-0
zmq.cpp
src/zmq.cpp
+2
-0
No files found.
AUTHORS
View file @
d4d65da2
...
...
@@ -95,6 +95,7 @@ Taras Shpot
Tero Marttila
Terry Wilson
Thijs Terlouw
Thomas Rodgers
Toralf Wittner
Tore Halvorsen
Trevor Bernard
...
...
include/zmq.h
View file @
d4d65da2
...
...
@@ -311,6 +311,7 @@ ZMQ_EXPORT const char *zmq_msg_gets (zmq_msg_t *msg, const char *property);
/* Message options */
#define ZMQ_MORE 1
#define ZMQ_SRCFD 2
#define ZMQ_SHARED 3
/* Send/recv options. */
#define ZMQ_DONTWAIT 1
...
...
src/zmq.cpp
View file @
d4d65da2
...
...
@@ -629,6 +629,8 @@ int zmq_msg_get (zmq_msg_t *msg_, int property_)
case
ZMQ_SRCFD
:
// warning: int64_t to int
return
((
zmq
::
msg_t
*
)
msg_
)
->
fd
();
case
ZMQ_SHARED
:
return
(((
zmq
::
msg_t
*
)
msg_
)
->
flags
()
&
zmq
::
msg_t
::
shared
)
?
1
:
0
;
default:
errno
=
EINVAL
;
return
-
1
;
...
...
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