41 int rc =
zmq_bind (xpub,
"tcp://127.0.0.1:5560");
45 rc =
zmq_bind (xsub,
"tcp://127.0.0.1:5561");
66 rc =
zmq_recv (xpub, buff,
sizeof (buff), 0);
79 rc =
zmq_recv (xsub, buff,
sizeof (buff), 0);
85 rc =
zmq_recv (sub, buff,
sizeof (buff), 0);
void msleep(int milliseconds)
ZMQ_EXPORT int zmq_setsockopt(void *s, int option, const void *optval, size_t optvallen)
ZMQ_EXPORT void * zmq_ctx_new(void)
void setup_test_environment(void)
ZMQ_EXPORT int zmq_recv(void *s, void *buf, size_t len, int flags)
ZMQ_EXPORT void * zmq_socket(void *, int type)
ZMQ_EXPORT int zmq_connect(void *s, const char *addr)
ZMQ_EXPORT int zmq_close(void *s)
ZMQ_EXPORT int zmq_send(void *s, const void *buf, size_t len, int flags)
ZMQ_EXPORT int zmq_bind(void *s, const char *addr)
ZMQ_EXPORT int zmq_ctx_term(void *context)