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

NAME

6       sock_dataready - test whether a network connection has incoming data
7

SYNOPSIS

9       #include <net/socket.h>
10
11       size_t sock_dataready(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_dataready() function tests whether a socket has  data  waiting
18       to be read by the user program.
19
20
21

RETURN VALUE

23       sock_dataready() returns the amount of data waiting in the input queue.
24
25
26

SEE ALSO

28       sock_read(3z)
29
30

AUTHOR

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