enwi / dartzmq

A simple dart zeromq implementation/wrapper around the libzmq C++ library
https://pub.dev/documentation/dartzmq/latest/
MIT License
26 stars 17 forks source link

Add DONTWAIT flag for send command #7

Closed izludec closed 1 year ago

izludec commented 2 years ago

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

enwi commented 2 years ago

@izludec Did you test my proposed change?

izludec commented 2 years ago

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 commented 2 years ago

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

enwi commented 2 years ago

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?