Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
92c01f69
Commit
92c01f69
authored
Sep 20, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed test_connect_delay to test_immediate
* The ZMQ_CONNECT_DELAY option was renamed to ZMQ_IMMEDIATE
parent
0644256e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
.gitignore
.gitignore
+1
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
Makefile.am
tests/Makefile.am
+2
-2
test_immediate.cpp
tests/test_immediate.cpp
+3
-3
No files found.
.gitignore
View file @
92c01f69
...
...
@@ -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
...
...
CMakeLists.txt
View file @
92c01f69
...
...
@@ -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
...
...
tests/Makefile.am
View file @
92c01f69
...
...
@@ -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
...
...
tests/test_
connect_delay
.cpp
→
tests/test_
immediate
.cpp
View file @
92c01f69
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment