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 DONTWAIT flag for send command #7

Closed
wants to merge 4 commits into from
Closed

Conversation

izludec
Copy link

@izludec izludec commented May 19, 2022

Add new flag to send function, which allow zmq send message without freezing thread if you choose PAIR mode.

lib/src/zeromq.dart Outdated Show resolved Hide resolved
Fix params to add both flags

Co-authored-by: Moritz Wirger <lj.moritorii@web.de>
@enwi
Copy link
Owner

enwi commented May 24, 2022

@izludec Did you test my proposed change?

@izludec
Copy link
Author

izludec commented May 30, 2022

It works for me(without errors) wirh two flags true, but I wasnt test that ZMQ_SNDMORE works properly. Not sure that zmq allow to use it both

@enwi
Copy link
Owner

enwi commented May 31, 2022

In theory ZeroMQ allows a number of flags being passed to zmq_send, but they need to be or'd (option | option) first.

@enwi
Copy link
Owner

enwi commented May 31, 2022

So the question is, should we add flags for each and every option or do it like ZeroMQ does it and just pass an integer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants