aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-06 12:26:42 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-06 12:26:42 -0700
commit52d37858451ad23f077294fc78b1a3f56255c32f (patch)
tree25bbdd0e995ca3af389697801f284d583e70a130 /src/nng.h
parentb0f31f578b0669b598d3ded3a625685b125bef1d (diff)
downloadnng-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nng.h b/src/nng.h
index f9ed54b0..700ee869 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -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"