40 int rc =
zmq_bind (router,
"tcp://127.0.0.1:5560");
47 rc =
zmq_send (router,
"DATA", 4, 0);
68 rc =
zmq_send (dealer,
"Hello", 5, 0);
70 rc =
zmq_recv (router, buffer, 255, 0);
72 assert (buffer [0] ==
'X');
78 rc =
zmq_send (router,
"Hello", 5, 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 void * zmq_socket(void *, int type)
#define ZMQ_ROUTER_MANDATORY
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)