diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-04 17:57:28 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-04 18:00:09 -0800 |
| commit | f77e5a5ec7f8b1373eeda0ea56f47137daf40330 (patch) | |
| tree | 9f2f10860a70765924dba9231bf3e2e4650f8b82 /src/sp/protocol | |
| parent | a40b421d39a64c285a4ac23304538690aaa90739 (diff) | |
| download | nng-f77e5a5ec7f8b1373eeda0ea56f47137daf40330.tar.gz nng-f77e5a5ec7f8b1373eeda0ea56f47137daf40330.tar.bz2 nng-f77e5a5ec7f8b1373eeda0ea56f47137daf40330.zip | |
args: Convert nng_opts_parse into a header only library using `nng_args_parse`.
The API is identical, except that some names have changed, and this is now a
header library in `nng/args.h` - so the core library does not need to carry this
code in binaries. Being a header library also means it is not necessary to
link against NNG, and it does not include any parts of NNG; it only depends on
a standard C99 or C11 environment.
Diffstat (limited to 'src/sp/protocol')
| -rw-r--r-- | src/sp/protocol/pipeline0/pull_test.c | 4 | ||||
| -rw-r--r-- | src/sp/protocol/pubsub0/sub_test.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sp/protocol/pipeline0/pull_test.c b/src/sp/protocol/pipeline0/pull_test.c index 8ed9cc0e..32134082 100644 --- a/src/sp/protocol/pipeline0/pull_test.c +++ b/src/sp/protocol/pipeline0/pull_test.c @@ -243,10 +243,10 @@ test_pull_recv_abort(void) nng_aio_set_timeout(aio, 1000); nng_socket_recv(s, aio); - nng_aio_abort(aio, NNG_EAMBIGUOUS); + nng_aio_abort(aio, NNG_ESTATE); nng_aio_wait(aio); - NUTS_FAIL(nng_aio_result(aio), NNG_EAMBIGUOUS); + NUTS_FAIL(nng_aio_result(aio), NNG_ESTATE); NUTS_CLOSE(s); nng_aio_free(aio); } diff --git a/src/sp/protocol/pubsub0/sub_test.c b/src/sp/protocol/pubsub0/sub_test.c index 13fc07bf..7f4e4480 100644 --- a/src/sp/protocol/pubsub0/sub_test.c +++ b/src/sp/protocol/pubsub0/sub_test.c @@ -301,10 +301,10 @@ test_sub_ctx_recv_abort(void) nng_aio_set_timeout(aio, 1000); nng_ctx_recv(ctx, aio); - nng_aio_abort(aio, NNG_EAMBIGUOUS); + nng_aio_abort(aio, NNG_EINTERNAL); nng_aio_wait(aio); - NUTS_FAIL(nng_aio_result(aio), NNG_EAMBIGUOUS); + NUTS_FAIL(nng_aio_result(aio), NNG_EINTERNAL); NUTS_CLOSE(sub); nng_aio_free(aio); } |
