aboutsummaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-02 23:54:27 -0700
committerGarrett D'Amore <garrett@damore.org>2024-11-02 23:54:27 -0700
commit02ec0b55cbee5de4d0fd688ce0ebddf08178dc98 (patch)
tree6cb65f860f8f9992b14139f52bf065c48f7b5a58 /src/core/socket.h
parent8bac5ccdf1de7334311459b9e2666e74a2c16c15 (diff)
downloadnng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.tar.gz
nng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.tar.bz2
nng-02ec0b55cbee5de4d0fd688ce0ebddf08178dc98.zip
Replace `NNG_OPT_RAW` with `nng_socket_raw`.
Similar to the other identities, this simplifies code a bit.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index 714ad5bb..8fab08d6 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -1,5 +1,5 @@
//
-// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
@@ -22,6 +22,7 @@ extern uint16_t nni_sock_proto_id(nni_sock *);
extern uint16_t nni_sock_peer_id(nni_sock *);
extern const char *nni_sock_proto_name(nni_sock *);
extern const char *nni_sock_peer_name(nni_sock *);
+extern bool nni_sock_raw(nni_sock *);
extern void *nni_sock_proto_data(nni_sock *);
extern void nni_sock_add_stat(nni_sock *, nni_stat_item *);