1sock_closed(3z)            z88dk Programmer's Manual           sock_closed(3z)
2
3
4

NAME

6       sock_closed - test whether a network connection is closed
7

SYNOPSIS

9       #include <net/socket.h>
10
11       bool_t sock_closed(SOCKET *s);
12

DESCRIPTION

14       The parameter s is a descriptor to a socket created using sock_open(3z)
15       or sock_listen(3z).
16
17       The sock_closed() function tests whether a socket is closed i.e.   con‐
18       nection  to  a remote host has not been established or has already been
19       closed by the kernel.
20
21       A socket of prot_UDP is never closed.
22
23
24

RETURN VALUE

26       sock_closed() returns TRUE or FALSE
27
28
29

SEE ALSO

31       sock_opened(3z)
32
33

AUTHOR

35       Dominic Morris <dom@jb.man.ac.uk>
36
37
38
39
40                               18 February 2000                sock_closed(3z)
Impressum