mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
add isc_socket_isbound()
This commit is contained in:
@@ -3193,3 +3193,15 @@ isc_socket_gettype(isc_socket_t *sock)
|
||||
|
||||
return (sock->type);
|
||||
}
|
||||
|
||||
isc_boolean_t
|
||||
isc_socket_isbound(isc_socket_t *sock)
|
||||
{
|
||||
isc_boolean_t val;
|
||||
|
||||
LOCK(&sock->lock);
|
||||
val = ((sock->bound) ? ISC_TRUE : ISC_FALSE);
|
||||
UNLOCK(&sock->lock);
|
||||
|
||||
return (val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user