Skip to content

Instantly share code, notes, and snippets.

@sustrik
Created July 12, 2011 15:53
Show Gist options
  • Select an option

  • Save sustrik/1078259 to your computer and use it in GitHub Desktop.

Select an option

Save sustrik/1078259 to your computer and use it in GitHub Desktop.
#include <zmq.hpp>
int main ()
{
zmq::context_t ctx (1);
zmq::socket_t s (ctx, ZMQ_REQ);
zmq::pollitem_t pi;
pi.socket = s;
pi.events = ZMQ_POLLIN;
zmq::poll (&pi, 1, -1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment