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

NAME

6       sock_opened - test whether a network connection is established
7

SYNOPSIS

9       #include <net/socket.h>
10
11       bool_t sock_opened(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_opened() function tests whether a socket is open i.e.  connecā€
18       tion to a remote host has been established.
19
20       A socket of prot_UDP is always established.
21
22
23

RETURN VALUE

25       sock_opened() returns TRUE or FALSE
26
27

SEE ALSO

29       sock_closed(3z)
30
31

AUTHOR

33       Dominic Morris <dom@jb.man.ac.uk>
34
35
36
37
38                               18 February 2000                sock_opened(3z)
Impressum