aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-06-26 17:39:17 -0700
committerGarrett D'Amore <garrett@damore.org>2018-06-27 17:28:05 -0700
commit251553b13e6bc8019914b9edd1292f97e856dd43 (patch)
tree9193b8b4d4df86253f0a469cd96d8bb304a64c82 /tests/sock.c
parent91f9061ad9289afffb0111c03a8390d0f82d7114 (diff)
downloadnng-251553b13e6bc8019914b9edd1292f97e856dd43.tar.gz
nng-251553b13e6bc8019914b9edd1292f97e856dd43.tar.bz2
nng-251553b13e6bc8019914b9edd1292f97e856dd43.zip
fixes #522 Separate out the endpoint plumbing
This separates the plumbing for endpoints into distinct dialer and listeners. Some of the transports could benefit from further separation, but we've done some rather larger separation e.g. for the websocket transport. IPC would be a good one to update later, when we start looking at exposing a more natural underlying API.
Diffstat (limited to 'tests/sock.c')
-rw-r--r--tests/sock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/sock.c b/tests/sock.c
index 29043cb3..3792090b 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -403,11 +403,6 @@ TestMain("Socket Operations", {
So(nng_dialer_setopt(ep, NNG_OPT_RECVMAXSZ,
"a", 1) == NNG_EINVAL);
});
- Convey("Cannot listen", {
- nng_listener l;
- l.id = ep.id;
- So(nng_listener_start(l, 0) == NNG_ENOTSUP);
- });
});
Convey("Listener creation ok", {
@@ -452,11 +447,6 @@ TestMain("Socket Operations", {
So(nng_listener_setopt(ep, NNG_OPT_RECVMAXSZ,
"a", 1) == NNG_EINVAL);
});
- Convey("Cannot dial", {
- nng_dialer d;
- d.id = ep.id;
- So(nng_dialer_start(d, 0) == NNG_ENOTSUP);
- });
});
Convey("Cannot access absent ep options", {