Created
October 2, 2010 23:33
-
-
Save nirs/608103 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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