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
64b07d81
Commit
64b07d81
authored
Dec 29, 2016
by
Constantin Rack
Committed by
GitHub
Dec 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2278 from bluca/msg_t_size_draft
parents
715f87fe
8c22ba24
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
6 deletions
+34
-6
NEWS
NEWS
+25
-1
zmq_ctx_get.txt
doc/zmq_ctx_get.txt
+1
-0
zmq.h
include/zmq.h
+3
-5
zmq_draft.h
src/zmq_draft.h
+3
-0
test_ctx_options.cpp
tests/test_ctx_options.cpp
+2
-0
No files found.
NEWS
View file @
64b07d81
0MQ version 4.2.1 stable, released on 201x/xx/xx
=============================================
* New Context options:
* New
DRAFT (see NEWS for 4.2.0)
Context options:
- ZMQ_MSG_T_SIZE
* Fixed #2268 - improved compatibility with mingw32
* Fixed #2254 - ZMQ_PUB compatibility with libzmq 2.x broken
* Fixed #2245 - added support for VS2017, Windows SDK 10.0.14393.0, toolset v141
* Fixed #2242 - file descriptors leaks on fork+exec
* Fixed #2239 - retired poller item crash from reaper thread
* Fixed #2234 - improved compatibility with AIX 7.1
* Fixed #2225 - cannot pick select for poller
* Fixed #2217 - CMake build uses library version as the ABI version
* Fixed #2208 - added support for ZMQ_TOS on IPv6
* Fixed #2200 - no documentation for ZMQ_SOCKS_PROXY
* Fixed #2199 - no documentation for zmq_curve_public
* Fixed #2196 - fixed build and runtime errors on kFreeBSD
0MQ version 4.2.0 stable, released on 2016/11/04
=============================================
...
...
doc/zmq_ctx_get.txt
View file @
64b07d81
...
...
@@ -62,6 +62,7 @@ ZMQ_MSG_T_SIZE: Get the zmq_msg_t size at runtime
The 'ZMQ_MSG_T_SIZE' argument returns the size of the zmq_msg_t structure at
runtime, as defined in the include/zmq.h public header.
This is useful for example for FFI bindings that can't simply do a sizeof().
NOTE: in DRAFT state, not yet available in stable releases.
RETURN VALUE
...
...
include/zmq.h
View file @
64b07d81
...
...
@@ -213,9 +213,6 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
#define ZMQ_THREAD_PRIORITY 3
#define ZMQ_THREAD_SCHED_POLICY 4
#define ZMQ_MAX_MSGSZ 5
// All options after this is for version 4.3 and still *draft*
// Subject to arbitrary change without notice
#define ZMQ_MSG_T_SIZE 6
/* Default for new contexts */
#define ZMQ_IO_THREADS_DFLT 1
...
...
@@ -371,8 +368,6 @@ ZMQ_EXPORT const char *zmq_msg_gets (zmq_msg_t *msg, const char *property);
#define ZMQ_VMCI_BUFFER_MAX_SIZE 87
#define ZMQ_VMCI_CONNECT_TIMEOUT 88
#define ZMQ_USE_FD 89
// All options after this is for version 4.3 and still *draft*
// Subject to arbitrary change without notice
/* Message options */
#define ZMQ_MORE 1
...
...
@@ -566,6 +561,9 @@ ZMQ_EXPORT void zmq_threadclose (void* thread);
#define ZMQ_SCATTER 17
#define ZMQ_DGRAM 18
/* DRAFT Context options */
#define ZMQ_MSG_T_SIZE 6
/* DRAFT Socket methods. */
ZMQ_EXPORT
int
zmq_join
(
void
*
s
,
const
char
*
group
);
ZMQ_EXPORT
int
zmq_leave
(
void
*
s
,
const
char
*
group
);
...
...
src/zmq_draft.h
View file @
64b07d81
...
...
@@ -46,6 +46,9 @@
#define ZMQ_SCATTER 17
#define ZMQ_DGRAM 18
/* DRAFT Context options */
#define ZMQ_MSG_T_SIZE 6
/* DRAFT Socket methods. */
int
zmq_join
(
void
*
s
,
const
char
*
group
);
int
zmq_leave
(
void
*
s
,
const
char
*
group
);
...
...
tests/test_ctx_options.cpp
View file @
64b07d81
...
...
@@ -48,7 +48,9 @@ int main (void)
#endif
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_IO_THREADS
)
==
ZMQ_IO_THREADS_DFLT
);
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_IPV6
)
==
0
);
#if defined (ZMQ_BUILD_DRAFT_AP)
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_MSG_T_SIZE
)
==
sizeof
(
zmq_msg_t
));
#endif
rc
=
zmq_ctx_set
(
ctx
,
ZMQ_IPV6
,
true
);
assert
(
zmq_ctx_get
(
ctx
,
ZMQ_IPV6
)
==
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