diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-04-24 09:29:34 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-04-24 14:55:10 -0700 |
| commit | ea741e0285e70e2ca417fbd2c874bb990bdbf833 (patch) | |
| tree | 6d2cf8deb714c0457b4972840cd4759b79257c26 /src/nng.h | |
| parent | 5902d02ad0a056a146231568f1293ffbcd59f61c (diff) | |
| download | nng-ea741e0285e70e2ca417fbd2c874bb990bdbf833.tar.gz nng-ea741e0285e70e2ca417fbd2c874bb990bdbf833.tar.bz2 nng-ea741e0285e70e2ca417fbd2c874bb990bdbf833.zip | |
fixes #363 context option plumbing missing
Diffstat (limited to 'src/nng.h')
| -rw-r--r-- | src/nng.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -377,6 +377,10 @@ NNG_DECL int nng_ctx_getopt_size(nng_ctx, const char *, size_t *); // tunables (which does include NNG_OPT_SENDTIMEO and NNG_OPT_RECVTIMEO); // see the protocol documentation for more details. NNG_DECL int nng_ctx_setopt(nng_ctx, const char *, const void *, size_t); +NNG_DECL int nng_ctx_setopt_bool(nng_ctx, const char *, bool); +NNG_DECL int nng_ctx_setopt_int(nng_ctx, const char *, int); +NNG_DECL int nng_ctx_setopt_ms(nng_ctx, const char *, nng_duration); +NNG_DECL int nng_ctx_setopt_size(nng_ctx, const char *, size_t); // nng_alloc is used to allocate memory. It's intended purpose is for // allocating memory suitable for message buffers with nng_send(). |
