From 52d37858451ad23f077294fc78b1a3f56255c32f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 6 Oct 2017 12:26:42 -0700 Subject: 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. --- src/nng.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nng.h') 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" -- cgit v1.2.3-70-g09d2