Open Durant35 opened 2 years ago
tcp://*:6600
, it runs normally
#include "libzmq/zmq.h"
int main (void) { void *ctx = zmq_ctx_new (); assert (ctx);
void *radio = zmq_socket (ctx, ZMQ_RADIO);
void *dish = zmq_socket (ctx, ZMQ_DISH);
int rc = zmq_bind (radio, "udp://192.168.4.102:6600");
assert (rc == 0);
rc = zmq_connect (dish, "udp://192.168.4.102:6600");
assert (rc == 0);
zmq_sleep (1);
rc = zmq_close (dish);
assert (rc == 0);
rc = zmq_close (radio);
assert (rc == 0);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;
}
I have built https://github.com/zeromq/libzmq/releases/tag/v4.3.4 as following:
Besides, I use https://github.com/zeromq/cppzmq/releases/tag/v4.8.1 and the codes as followings:
However, it runs with crash: