Skip to content

Instantly share code, notes, and snippets.

@nirs
Created October 2, 2010 23:33
Show Gist options
  • Save nirs/608103 to your computer and use it in GitHub Desktop.
Save nirs/608103 to your computer and use it in GitHub Desktop.
#include <unistd.h>
#include <zmq.h>
int main (int argc, char *argv[])
{
void *context = zmq_init (1);
void *socket = zmq_socket (context, ZMQ_PUB);
// Give some time for io thread to start
usleep(1000000);
zmq_bind(socket, "ipc://test");
// Give some time for socket to bind
usleep(1000000);
//zmq_close (socket);
zmq_term (context);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment