2
0
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:
Michael Graff
2000-05-11 07:39:17 +00:00
parent b9c8f4378a
commit 2fc337ec38
2 changed files with 15 additions and 0 deletions

View File

@@ -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);
}