aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-25 11:43:59 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-25 20:11:51 -0700
commitcc419cf01d9c060a3bd3fc318f9b9bc9e736dae9 (patch)
tree2f26cd782a54bed35e03b451003deee5df701983 /include
parentebc479a61b8f2d2f3a6d846d18debfb9022e6010 (diff)
downloadnng-cc419cf01d9c060a3bd3fc318f9b9bc9e736dae9.tar.gz
nng-cc419cf01d9c060a3bd3fc318f9b9bc9e736dae9.tar.bz2
nng-cc419cf01d9c060a3bd3fc318f9b9bc9e736dae9.zip
Add stream direct address functions for socket addresses.
This is going to be used to facilitate debugging, and eliminate some inconveniences around these things. We plan to move the pipe functions to use these directly, hopefully moving away from the pipe_getopt hack. (The transport API will need to grow these. For now this is just the streams.)
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index afb347de..c5881b3b 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -1162,6 +1162,8 @@ NNG_DECL nng_err nng_stream_get_string(
nng_stream *, const char *, const char **);
NNG_DECL nng_err nng_stream_get_addr(
nng_stream *, const char *, nng_sockaddr *);
+NNG_DECL nng_err nng_stream_peer_addr(nng_stream *, const nng_sockaddr **);
+NNG_DECL nng_err nng_stream_self_addr(nng_stream *, const nng_sockaddr **);
NNG_DECL nng_err nng_stream_peer_cert(nng_stream *, nng_tls_cert **);
NNG_DECL nng_err nng_stream_dialer_alloc(nng_stream_dialer **, const char *);