40 int rc =
zmq_bind (frontend,
"inproc://timeout_test");
55 rc =
zmq_recv (frontend, buffer, 32, 0);
59 assert (elapsed > 200 && elapsed < 300);
64 rc =
zmq_connect (backend,
"inproc://timeout_test");
69 rc =
zmq_send (backend,
"Hello", 5, 0);
71 rc =
zmq_recv (frontend, buffer, 32, 0);
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 int zmq_errno(void)
ZMQ_EXPORT unsigned long zmq_stopwatch_stop(void *watch_)
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)
ZMQ_EXPORT void * zmq_stopwatch_start(void)