diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-09-07 11:33:05 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 13:59:35 -0700 |
| commit | 34be2c20a62e94e3a2815dd869609554b3922477 (patch) | |
| tree | 55eb5ae8aec9d9213f502bffda50abaa11b06bc2 /tests/wss.c | |
| parent | 74adece2303ab7c2b05459c7ff24b362e9660068 (diff) | |
| download | nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.gz nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.bz2 nng-34be2c20a62e94e3a2815dd869609554b3922477.zip | |
Remove the legacy transport registration functions.
This also allows to remove most of the transport headers.
Only zerotier.h sticks around, and only for now. (We expect to
eject it into a separate module.)
Diffstat (limited to 'tests/wss.c')
| -rw-r--r-- | tests/wss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/wss.c b/tests/wss.c index 6d7bc003..660ede3b 100644 --- a/tests/wss.c +++ b/tests/wss.c @@ -15,7 +15,6 @@ #include <nng/nng.h> #include <nng/protocol/pair1/pair.h> #include <nng/supplemental/tls/tls.h> -#include <nng/transport/ws/websocket.h> #include "convey.h" #include "stubs.h" @@ -136,7 +135,7 @@ check_props(nng_msg *msg) size_t z; nng_sockaddr la; nng_sockaddr ra; - char * buf; + char *buf; size_t len; p = nng_msg_get_pipe(msg); @@ -155,8 +154,7 @@ check_props(nng_msg *msg) // Request header z = 0; buf = NULL; - So(nng_pipe_get(p, NNG_OPT_WS_REQUEST_HEADERS, buf, &z) == - NNG_EINVAL); + So(nng_pipe_get(p, NNG_OPT_WS_REQUEST_HEADERS, buf, &z) == NNG_EINVAL); So(z > 0); len = z; So((buf = nng_alloc(len)) != NULL); |
