mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
make isc_nmsocket_{attach,detach}{} functions private
there is no need for a caller to reference-count socket objects. they need tto be able tto close listener sockets (i.e., those returned by isc_nm_listen{udp,tcp,tcpdns}), and an isc_nmsocket_close() function has been added for that. other sockets are only accessed via handles.
This commit is contained in:
committed by
Witold Kręcicki
parent
be032d64ff
commit
9e740cad21
@@ -615,6 +615,19 @@ isc__nmsocket_init(isc_nmsocket_t *sock, isc_nm_t *mgr, isc_nmsocket_type type,
|
||||
* and its interface to 'iface'.
|
||||
*/
|
||||
|
||||
void
|
||||
isc__nmsocket_attach(isc_nmsocket_t *sock, isc_nmsocket_t **target);
|
||||
/*%<
|
||||
* Attach to a socket, increasing refcount
|
||||
*/
|
||||
|
||||
void
|
||||
isc__nmsocket_detach(isc_nmsocket_t **socketp);
|
||||
/*%<
|
||||
* Detach from socket, decreasing refcount and possibly destroying the
|
||||
* socket if it's no longer referenced.
|
||||
*/
|
||||
|
||||
void
|
||||
isc__nmsocket_prep_destroy(isc_nmsocket_t *sock);
|
||||
/*%<
|
||||
|
Reference in New Issue
Block a user