diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-10-06 12:26:42 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-10-06 12:26:42 -0700 |
| commit | 52d37858451ad23f077294fc78b1a3f56255c32f (patch) | |
| tree | 25bbdd0e995ca3af389697801f284d583e70a130 /src/nng.h | |
| parent | b0f31f578b0669b598d3ded3a625685b125bef1d (diff) | |
| download | nng-52d37858451ad23f077294fc78b1a3f56255c32f.tar.gz nng-52d37858451ad23f077294fc78b1a3f56255c32f.tar.bz2 nng-52d37858451ad23f077294fc78b1a3f56255c32f.zip | |
Add NNG_OPT_DOMAIN and NNG_OPT_SOCKNAME support for legacy compat.
The NNG_OPT_SOCKNAME option is settable, to a limit of 64 bytes.
The NNG_OPT_DOMAIN is read-only, but changes to match the setting
of the NNG_OPT_RAW field. New applications should not use the
NNG_OPT_DOMAIN option -- it is provided solely for use with the
legacy NN_DOMAIN option in the compatibility layer.
Diffstat (limited to 'src/nng.h')
| -rw-r--r-- | src/nng.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -408,6 +408,8 @@ NNG_DECL int nng_respondent0_open(nng_socket *); #define nng_respondent_open nng_respondent0_open // Options. +#define NNG_OPT_SOCKNAME "socket-name" +#define NNG_OPT_DOMAIN "compat:domain" // legacy compat only #define NNG_OPT_RAW "raw" #define NNG_OPT_LINGER "linger" #define NNG_OPT_RECVBUF "recv-buffer" |
