41 int rc =
zmq_bind (dealer,
"tcp://127.0.0.1:5560");
45 rc =
zmq_bind (router,
"tcp://127.0.0.1:5561");
67 for (
int i = 0; i != 4; i++) {
74 size_t sz =
sizeof (rcvmore);
85 assert (memcmp (buff,
"ABC", 3) == 0);
87 size_t sz =
sizeof (rcvmore);
93 assert (memcmp (buff,
"DEF", 3) == 0);
105 for (
int i = 0; i != 4; i++) {
121 assert (memcmp (buff,
"GHI", 3) == 0);
127 assert (memcmp (buff,
"JKL", 3) == 0);
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_getsockopt(void *s, int option, void *optval, size_t *optvallen)
ZMQ_EXPORT int zmq_msg_send(zmq_msg_t *msg, void *s, int flags)
ZMQ_EXPORT int zmq_connect(void *s, const char *addr)
ZMQ_EXPORT int zmq_close(void *s)
ZMQ_EXPORT int zmq_msg_recv(zmq_msg_t *msg, void *s, int flags)
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 int zmq_msg_init(zmq_msg_t *msg)