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 class based on new libzmq poller API #111

Merged
merged 1 commit into from
Jan 31, 2017
Merged

poller_t class based on new libzmq poller API #111

merged 1 commit into from
Jan 31, 2017

Conversation

kurdybacha
Copy link
Contributor

libzmq 4.2.0 has introduced new poller API.
New introduced here zmq::poller_t class is a wrapper that allows registering callback function.
example:

zmq::poller_t poller;
std::function<void(void)> lambda = []() {
    std::cout << "socket ready!!" << std::endl;
};
poller.add(server, ZMQ_POLLIN, lambda)
poller.wait(std::chrono::milliseconds(1000));

@bluca bluca merged commit a15d175 into zeromq:master Jan 31, 2017
@ax3l ax3l mentioned this pull request Jul 31, 2017
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.

None yet

2 participants