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

NAME

6       sock_close - close a network connection
7

SYNOPSIS

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

DESCRIPTION

14       The  parameter  s  is  a  descriptor  to  an  open socket created using
15       sock_open(3z) or sock_listen(3z).
16
17       The sock_close() function will initiate a close on the socket specified
18       by s. Once this function has been called no more data can be written to
19       the socket. If the socket is of type prot_TCP then data can continue to
20       be read.
21
22
23

RETURN VALUE

25       None
26
27

SEE ALSO

29       sock_abort(3z), sock_shutdown(3z)
30
31

AUTHOR

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