Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all draft socket types up to libzmq 4.3.4 #488

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

barometz
Copy link
Contributor

Resolving issue #462 and then some.

This adds the GATHER, SCATTER, CHANNEL, PEER and DGRAM socket types to zmq::socket_type. I can't find any documentation about DGRAM but since it was requested and does exist in zmq.h I figured I'd include it. I'm guessing that's when you map ZeroMQ messages to UDP datagrams?

@barometz barometz marked this pull request as ready for review April 17, 2021 14:07
@@ -2030,6 +2030,13 @@ enum class socket_type : int
client = ZMQ_CLIENT,
radio = ZMQ_RADIO,
dish = ZMQ_DISH,
gather = ZMQ_GATHER,
Copy link
Member

Choose a reason for hiding this comment

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

Should probably guard all with #ifdefs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're all behind #if defined(ZMQ_BUILD_DRAFT_API) && ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 2, 0) - I verified the version for all.

@sigiesec sigiesec merged commit 545b12c into zeromq:master Apr 19, 2021
@barometz barometz deleted the draft-socket-types-4.3.4 branch April 19, 2021 06:49
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.

3 participants