1sock_read(3z) z88dk Programmer's Manual sock_read(3z)
2
3
4
6 sock_read - read bytes from a network socket
7
9 #include <net/socket.h>
10
11 size_t sock_read(SOCKET * s, void * dp , size_t len);
12
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_read() function reads at most len bytes from the socket s and
18 places them at dp. dp which should be in the lower 16k of the memory
19 map.
20
21
23 The sock_read() function returns the number of bytes read from the
24 socket. If an illegal socket is supplied the carry flag will be set and
25 the return value will be EPROTONOSUPPORT.
26
27
29 Dominic Morris <dom@jb.man.ac.uk>
30
31
32
33 18 February 2000 sock_read(3z)