From 02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 2 Nov 2024 23:54:27 -0700 Subject: Replace `NNG_OPT_RAW` with `nng_socket_raw`. Similar to the other identities, this simplifies code a bit. --- include/nng/nng.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index d0e47829..074850c5 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -270,6 +270,7 @@ NNG_DECL int nng_socket_proto_id(nng_socket id, uint16_t *idp); NNG_DECL int nng_socket_peer_id(nng_socket id, uint16_t *idp); NNG_DECL int nng_socket_proto_name(nng_socket id, const char **namep); NNG_DECL int nng_socket_peer_name(nng_socket id, const char **namep); +NNG_DECL int nng_socket_raw(nng_socket id, bool *rawp); // Utility function for getting a printable form of the socket address // for display in logs, etc. It is not intended to be parsed, and the @@ -729,7 +730,6 @@ NNG_DECL nng_listener nng_pipe_listener(nng_pipe); // Options. #define NNG_OPT_SOCKNAME "socket-name" -#define NNG_OPT_RAW "raw" #define NNG_OPT_RECVBUF "recv-buffer" #define NNG_OPT_SENDBUF "send-buffer" #define NNG_OPT_RECVTIMEO "recv-timeout" -- cgit v1.2.3-70-g09d2