Skip to content

feat: add send_flags overload for multipart_t::send#687

Merged
gummif merged 1 commit into
zeromq:masterfrom
granite-kas:fix-multipart-send-flags
May 26, 2026
Merged

feat: add send_flags overload for multipart_t::send#687
gummif merged 1 commit into
zeromq:masterfrom
granite-kas:fix-multipart-send-flags

Conversation

@granite-kas
Copy link
Copy Markdown
Contributor

Update zmq::multipart_t::send to support zmq::send_flags

Fixes #664.

Summary

  • Add a send_flags overload for zmq::multipart_t::send.
  • Keep the existing integer-based overload for backward compatibility.
  • Forward the new overload to the existing implementation so current behavior stays unchanged.

Notes

This is a small API improvement in the header-only zmq_addon.hpp file. It makes multipart send calls consistent with the rest of the modern cppzmq API.

Comment thread zmq_addon.hpp Outdated
typedef std::deque<message_t>::const_reverse_iterator const_reverse_iterator;

#ifdef ZMQ_CPP11
bool send(socket_ref socket, send_flags flags = send_flags::none)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this below the other send definition, and remove the default = send_flags::none.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I moved the send_flags overload below the existing int-based send overload and removed the default argument.

@granite-kas granite-kas force-pushed the fix-multipart-send-flags branch 2 times, most recently from 606c98b to 68d173a Compare May 26, 2026 10:12
@granite-kas granite-kas force-pushed the fix-multipart-send-flags branch from 68d173a to d0210cd Compare May 26, 2026 10:18
@gummif gummif merged commit 7f05306 into zeromq:master May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update zmq::multipart_t::send to support zmq::send_flags

2 participants