mirror of
https://github.com/zeromq/libzmq.git
synced 2025-09-26 15:59:34 +02:00
update test that relied on connect notifications to be disabled
This commit is contained in:
parent
3e7d737360
commit
fd51b0e508
@ -36,12 +36,15 @@ void test_stream_2_stream(){
|
||||
char buff[256];
|
||||
char msg[] = "hi 1";
|
||||
const char *bindip = "tcp://127.0.0.1:5556";
|
||||
int disabled = 0;
|
||||
int zero = 0;
|
||||
void *ctx = zmq_ctx_new ();
|
||||
|
||||
// Set up listener STREAM.
|
||||
rbind = zmq_socket (ctx, ZMQ_STREAM);
|
||||
assert (rbind);
|
||||
ret = zmq_setsockopt (rbind, ZMQ_STREAM_NOTIFY, &disabled, sizeof (disabled));
|
||||
assert (ret == 0);
|
||||
ret = zmq_setsockopt (rbind, ZMQ_LINGER, &zero, sizeof (zero));
|
||||
assert (0 == ret);
|
||||
ret = zmq_bind (rbind, bindip);
|
||||
|
Loading…
x
Reference in New Issue
Block a user