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

poller_t and file descriptors (and why draft api) #557

Closed
jhsaren opened this issue May 16, 2022 · 1 comment · Fixed by #595
Closed

poller_t and file descriptors (and why draft api) #557

jhsaren opened this issue May 16, 2022 · 1 comment · Fixed by #595

Comments

@jhsaren
Copy link

jhsaren commented May 16, 2022

Would it be possible to add the normal file descriptor into poller_t? It is possible in the c api of zmq so this functionality seems to be missing in cppzmq.

I'm using cppzmq in a multithreaded program which merges measurement data from ADC cards. I have been mostly happy to cppzmq because of RAII. Now, I need to include slow control data into the program via UDP protocol. The sender is not in my hands and is not using zmq so I'm just using posix socket. I also would benefit to have the same poller been able to poll incoming zmq traffic and polling the normal file simultaneously. In meanwhile I have to use the c api for poller.

A side note. Is there any clear reason why the simple zmq::poller_t requires DRAFT api? This makes the installing of my software much more difficult since the installing of DRAFT support is not easy always.

@gummif
Copy link
Member

gummif commented Oct 9, 2022

Sorry for the late reply, but poller is still in DRAFT in libzmq so is has to be this way until that is fixed upstream. Adding functions to poller taking ::zmq::fd_t instead of socket_ref would be relatively easy (I hadn't noticed that these were missing until now).

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 a pull request may close this issue.

2 participants