Commit Graph

569 Commits

Author SHA1 Message Date
Simon Giesecke
545b12c56a
Merge pull request #488 from barometz/draft-socket-types-4.3.4
Add all draft socket types up to libzmq 4.3.4
2021-04-19 08:27:59 +02:00
Dominic van Berkel
24837086cc Add all DRAFT socket types up to libzmq 4.3.4 2021-04-17 15:53:28 +02:00
Simon Giesecke
4f111562e7
Merge pull request #473 from Katawann/pr-fix-example-cmake
Fix failed compilation for the examples
2021-03-10 22:22:06 +01:00
Simon Giesecke
dc4c0656a6
Merge pull request #482 from kevle/monitor-check_event-raii
Fix for potential memory leak in monitor_t::check_event
2021-03-10 22:21:42 +01:00
albestro
1a4ebda46e
genealize arithmetic operators for socket_base and derived (#470)
Generalize arithmetic operators for socket_base and derived
2021-03-10 22:20:33 +01:00
Kevin Leonardic
8d36a7c510 Problem: zmq_msg_t not closed on exception
Solution: Use zmq::message_t
2021-03-06 14:11:53 +01:00
Gudmundur Adalsteinsson
f428fee374
Problem: zmq_fd_t not used/available in zmq (#452)
* Problem: zmq_fd_t not used/available in zmq

Solution: Make zmq::fd_t available and use in poller_event

* Deprecate typedef with comment
2021-02-12 12:28:40 +01:00
Quentin Collet
da0d1b859a example: add find_package of cppzmq
without this, compilation failed with /usr/bin/ld: cannot find -lcppzmq
2021-02-02 22:04:37 +01:00
Simon Giesecke
c591113bb7
Merge pull request #460 from gummif/gfa/if-warn
Problem: if constexpr warnings on MSVC
2021-01-15 10:28:53 +01:00
Simon Giesecke
d7a9909970
Merge pull request #459 from gummif/gfa/conv-warn
Problem: conversion warnings
2021-01-15 10:28:38 +01:00
Gudmundur Adalsteinsson
a7889af4bf Problem: if constexpr warnings on MSVC
Solution: Use if constexpr where possible in C++17
2020-11-26 20:55:04 +00:00
Gudmundur Adalsteinsson
486b7226cb Problem: conversion warnings
Solution: Silence them with casts
2020-11-26 20:54:09 +00:00
Simon Giesecke
18db4568f9
Merge pull request #451 from gummif/gfa/poller-size
Problem: Poller size function missing
2020-11-25 10:00:04 +01:00
Simon Giesecke
05ff657b1a
Merge pull request #450 from gummif/gfa/build-examples
Problem: Examples are not compiled
2020-11-25 09:57:17 +01:00
Simon Giesecke
e80cefa1cf
Merge pull request #458 from gummif/gfa/depr-connected
Problem: connected() is confusing
2020-11-25 09:51:12 +01:00
Simon Giesecke
4afe6444e9
Merge pull request #461 from gummif/gfa/catch-fix
Problem: Changes in Catch2 causes errors
2020-11-25 09:43:54 +01:00
Gudmundur Adalsteinsson
0f9e4c12d0 Problem: Changes in Catch2 causes errors
Solution: Use a fixed commit instead of a branch
2020-10-25 18:04:25 +00:00
Gudmundur Adalsteinsson
d57ffc5cf7 Problem: connected() is confusing
Solution: Deprecated it, it is not related to connect/disconnect.
2020-10-24 18:00:52 +00:00
Gudmundur Adalsteinsson
2af0c0105a Problem: Poller size function missing
Solution: Add it to poller_t
2020-10-10 21:22:16 +00:00
Gudmundur Adalsteinsson
379793cbab Compile and update the examples in the README 2020-10-10 15:32:51 +00:00
Gudmundur Adalsteinsson
7a6c904f94 Problem: Examples are not compiled
Solution: Compile the examples when tests are compiled and using C++11
or greater.
2020-10-10 13:42:00 +00:00
Simon Giesecke
03243ad64d
Merge pull request #447 from SylvainCorlay/vs2015-syntax-error
Fix VS 2015 syntax error with macro
2020-10-05 14:48:18 +02:00
Sylvain Corlay
c34d8eaaec Fix VS2015 syntax error with ZMQ_DEPRECATED macro. 2020-10-05 12:26:28 +02:00
Simon Giesecke
07ac9fef63
Bump version number to 4.8.0 after release to prepare for next development iteration 2020-09-30 12:24:28 +02:00
Simon Giesecke
fef905d598
Merge pull request #399 from gummif/gfa/message-ctor
Problem: message_t ctor string inconsistency
2020-09-08 11:42:55 +02:00
Gudmundur Adalsteinsson
e9716fa6e6
Problem: C++ version not correctly estimated (#429)
* Problem: C++ version not correctly estimated

Solution: Include headers before checking macros and add additional checks for _MSVC_LANG.
2020-09-08 11:38:06 +02:00
Gudmundur Adalsteinsson
ae570b0835 Apply clang-format 2020-09-07 21:37:44 +00:00
Gudmundur Adalsteinsson
1897488a28 Problem: message_t ctor string inconsistency
Solution: Constuctor taking generic ranges including
string literals includes the null terminated char in
the message. Deprecate function and add overloads
for strings.
2020-09-07 21:37:01 +00:00
Simon Giesecke
bf4f75b971
Merge pull request #405 from gummif/gfa/active-poller-handler
Problem: Active poller double add mutates handler
2020-09-07 10:01:26 +02:00
Gudmundur Adalsteinsson
d237615a25 Problem: Active poller double add mutates handler
Solution: Check if socket already added before storing.
2020-09-06 13:46:08 +00:00
Gudmundur Adalsteinsson
3e3fe85b33 Add ctor to error_t taking errno and add noexcept specifiers 2020-09-06 13:25:11 +00:00
Simon Giesecke
7efc9b153f
Merge pull request #432 from or17191/bugfix/socket-move-assignment-not-initializing-ctxptr
Bugfix: socket_t move assignment doesn't initialize ctxptr
2020-09-04 11:33:41 +02:00
serg06
12c3003aa2
Add an example (#423)
I had a really tough time figuring out how to do simple pub-sub with cppzmq; I finally figured it out so I'd like to add it.
2020-09-04 11:23:56 +02:00
Simon Giesecke
4ceb2c8722
Merge pull request #395 from franzhollerer/Issue_#394_fix_cmake_library_dependency
[#394] fixes dependency on libzmq libraries
2020-09-04 11:15:03 +02:00
Franz Hollerer
96ce61fab7 [#394] fixes dependency on libzmq libraries
simplified logic according @tau-mask suggestion
2020-09-04 10:13:17 +02:00
or17191
37e6334d5f Bugfix: socket_t move assignment doesn't initialize ctxptr
Until now, we only assigned the _handle on
`zmq::socket_t::operator=(socket_t&&)`. This manifests when trying to
monitor a socket initialized by that constructor.

To avoid changing the public interface of the socket_t class, we tested
for the specific monitor usecase, since it's the only class accessing
zmq::socke_t::ctxptr.

NOTE: When running the new unit-test without the fix, it might hang on
`zmq_socket_monitor(socket_, NULL, 0)`. We haven't figured out the cause
for that, but we deemed it unimportant (or at least out of scope).
2020-07-18 19:17:19 +03:00
Simon Giesecke
89f4d1b187
Merge pull request #408 from gummif/gfa/ctx-handle
Problem: implicit conversion operators in context
2020-06-19 18:10:38 +02:00
Simon Giesecke
452f736fb7
Merge pull request #416 from gummif/gfa/macro-doc
Problem: Feature checking inconsistencies
2020-06-19 18:02:51 +02:00
Gudmundur Adalsteinsson
8b64a341ac Add requirement that the handler is non-null in active_poller 2020-05-24 22:38:35 +00:00
Gudmundur Adalsteinsson
e9c5546e04 Add CHECK_THROWS_ZMQ_ERROR and check error codes 2020-05-24 22:16:55 +00:00
Gudmundur Adalsteinsson
d2c5fef2c1 Apply clang-format 2020-05-24 21:53:56 +00:00
Gudmundur Adalsteinsson
1fc3a9a873 Document macro usage and simplify code 2020-05-24 21:34:42 +00:00
Simon Giesecke
c4d4cf75dd
Merge pull request #417 from gummif/gfa/pre-refactoring
Problem: Warnings and duplication
2020-05-22 10:12:44 +02:00
Gudmundur Adalsteinsson
76e6bacc80 Move string literal into variable 2020-05-16 13:22:52 +00:00
Gudmundur Adalsteinsson
6143343edf Fix nodiscard warning 2020-05-16 13:20:48 +00:00
Gudmundur Adalsteinsson
6d71b9b541 Replace checks for C++17 with string view macro 2020-05-16 12:39:54 +00:00
Gudmundur Adalsteinsson
5a3dee082e Problem: implicit conversion operators in context
Solution: add handle() and mark operators as deprecated
2020-05-15 20:38:05 +00:00
Simon Giesecke
a2ef92ef57
Merge pull request #415 from sigiesec/poll-array
Add poll overload accepting std::array
2020-05-15 13:09:57 +02:00
Critical2104
b0e72439bd Deprecate poll overload accepting a long timeout value 2020-05-15 12:58:51 +02:00
Critical2104
8d35b8c934 Added poll() overload accepting std::array 2020-05-15 12:50:22 +02:00