0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Renamed test_connect_delay to test_immediate

* The ZMQ_CONNECT_DELAY option was renamed to ZMQ_IMMEDIATE
This commit is contained in:
Pieter Hintjens 2013-09-20 14:23:43 +02:00
parent 0644256ef4
commit 92c01f69db
4 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -43,7 +43,7 @@ tests/test_invalid_rep
tests/test_msg_flags
tests/test_ts_context
tests/test_connect_resolve
tests/test_connect_delay
tests/test_immediate
tests/test_term_endpoint
tests/test_router_mandatory
tests/test_disconnect_inproc

View File

@ -579,7 +579,7 @@ endif()
enable_testing()
set(tests
test_system
test_connect_delay
test_immediate
test_connect_resolve
test_ctx_destroy
test_ctx_options

View File

@ -14,7 +14,7 @@ noinst_PROGRAMS = test_system \
test_invalid_rep \
test_msg_flags \
test_connect_resolve \
test_connect_delay \
test_immediate \
test_last_endpoint \
test_term_endpoint \
test_linger \
@ -59,7 +59,7 @@ test_invalid_rep_SOURCES = test_invalid_rep.cpp
test_linger_SOURCES = test_linger.cpp
test_msg_flags_SOURCES = test_msg_flags.cpp
test_connect_resolve_SOURCES = test_connect_resolve.cpp
test_connect_delay_SOURCES = test_connect_delay.cpp
test_immediate_SOURCES = test_immediate.cpp
test_last_endpoint_SOURCES = test_last_endpoint.cpp
test_term_endpoint_SOURCES = test_term_endpoint.cpp
test_monitor_SOURCES = test_monitor.cpp

View File

@ -117,7 +117,7 @@ int main (void)
// Set the key flag
val = 1;
rc = zmq_setsockopt (from, ZMQ_DELAY_ATTACH_ON_CONNECT, &val, sizeof(val));
rc = zmq_setsockopt (from, ZMQ_IMMEDIATE, &val, sizeof(val));
assert (rc == 0);
// Connect to the invalid socket
@ -170,9 +170,9 @@ int main (void)
rc = zmq_setsockopt (frontend, ZMQ_LINGER, &zero, sizeof (zero));
assert (rc == 0);
// Frontend connects to backend using DELAY_ATTACH_ON_CONNECT
// Frontend connects to backend using IMMEDIATE
int on = 1;
rc = zmq_setsockopt (frontend, ZMQ_DELAY_ATTACH_ON_CONNECT, &on, sizeof (on));
rc = zmq_setsockopt (frontend, ZMQ_IMMEDIATE, &on, sizeof (on));
assert (rc == 0);
rc = zmq_bind (backend, "tcp://127.0.0.1:5560");
assert (rc == 0);