diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-25 23:02:17 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-25 23:02:17 -0700 |
| commit | f9ff44ce0f0c73f05c182bb07c76bf6b51470560 (patch) | |
| tree | bc37e151ab8527ca6df85ccb079c2b03673ba319 /src/sp/transport.h | |
| parent | c2aa8c12e705ba77f3d2d28c5ba0a9ec7efb7632 (diff) | |
| download | nng-f9ff44ce0f0c73f05c182bb07c76bf6b51470560.tar.gz nng-f9ff44ce0f0c73f05c182bb07c76bf6b51470560.tar.bz2 nng-f9ff44ce0f0c73f05c182bb07c76bf6b51470560.zip | |
Plumb sockaddrs all the way through pipes, make them failsafe.
These functions can no longer fail.
Diffstat (limited to 'src/sp/transport.h')
| -rw-r--r-- | src/sp/transport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sp/transport.h b/src/sp/transport.h index 11a9ac01..af3b510e 100644 --- a/src/sp/transport.h +++ b/src/sp/transport.h @@ -189,6 +189,12 @@ struct nni_sp_pipe_ops { // option setting. nng_err (*p_getopt)(void *, const char *, void *, size_t *, nni_type); + // p_self_addr obtains the local sockaddr. + const nng_sockaddr *(*p_self_addr)(void *); + + // p_peer_addr obtains the peer sockaddr. + const nng_sockaddr *(*p_peer_addr)(void *); + // p_peer_cert is used to obtain a peer cert for transports that // implement TLS. nng_err (*p_peer_cert)(void *, nng_tls_cert **); |
