aboutsummaryrefslogtreecommitdiff
path: root/tests/scalability.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-14 15:27:38 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-14 15:27:38 -0700
commit63479c2938cbc80c1aac9367cb95564f6e7540e1 (patch)
tree495584b637f73b593d25f01577eeaa944477f159 /tests/scalability.c
parent343417234aa3fd86e8ae0b56ae500a1ed3411cfc (diff)
downloadnng-63479c2938cbc80c1aac9367cb95564f6e7540e1.tar.gz
nng-63479c2938cbc80c1aac9367cb95564f6e7540e1.tar.bz2
nng-63479c2938cbc80c1aac9367cb95564f6e7540e1.zip
fixes #63 NNG_FLAG_SYNCH should be the default
Also enables creating endpoints that are idle (first part of endpoint options API) and shutting down endpoints.
Diffstat (limited to 'tests/scalability.c')
-rw-r--r--tests/scalability.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scalability.c b/tests/scalability.c
index e9422f8e..a7347343 100644
--- a/tests/scalability.c
+++ b/tests/scalability.c
@@ -61,7 +61,7 @@ openclients(nng_socket *clients, int num)
"setopt(SNDTIMEO) #%d: %s\n", i, nng_strerror(rv));
return (rv);
}
- rv = nng_dial(clients[i], addr, NULL, NNG_FLAG_SYNCH);
+ rv = nng_dial(clients[i], addr, NULL, 0);
if (rv != 0) {
printf("dial #%d: %s\n", i, nng_strerror(rv));
return (rv);
@@ -123,7 +123,7 @@ Main({
if ((nng_rep_open(&rep) != 0) ||
(nng_setopt(rep, NNG_OPT_RCVBUF, &depth, sizeof(depth)) != 0) ||
(nng_setopt(rep, NNG_OPT_SNDBUF, &depth, sizeof(depth)) != 0) ||
- (nng_listen(rep, addr, NULL, NNG_FLAG_SYNCH) != 0) ||
+ (nng_listen(rep, addr, NULL, 0) != 0) ||
(nng_thread_create(&server, serve, &rep) != 0)) {
fprintf(stderr, "Unable to set up server!\n");
exit(1);