Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
2fc337ec
Commit
2fc337ec
authored
May 11, 2000
by
Michael Graff
Browse files
add isc_socket_isbound()
parent
b9c8f437
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/isc/include/isc/socket.h
View file @
2fc337ec
...
...
@@ -655,6 +655,9 @@ isc_socket_gettype(isc_socket_t *sock);
* "sock" is a valid socket.
*/
isc_boolean_t
isc_socket_isbound
(
isc_socket_t
*
sock
);
ISC_LANG_ENDDECLS
#endif
/* ISC_SOCKET_H */
lib/isc/unix/socket.c
View file @
2fc337ec
...
...
@@ -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
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment