Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
SP_POLL(3)			  User Manuals			      SP_POLL(3)

NAME
     SP_poll - checks amount of data ready to be read

SYNOPSIS
     #include <sp.h>
     int SP_poll( mailbox mbox);

DESCRIPTION
     SP_poll is a way to poll a mailbox to see if any messages are available for
     receiving.  The value returned will be < 0 if error, 0 if nothing is avail-
     able, and the number of bytes waiting if something is there.

RETURN VALUES
     Returns 0 if nothing is available or the number of bytes available, or  one
     of the following errors ( < 0 ):

     ILLEGAL_SESSION
	     The session specified by mbox is illegal. Usually because it is not
	     active.

BUGS
     None.

AUTHOR
     Yair Amir <yairamir@cnds.jhu.edu>
     Jonathan Stanton <jonathan@cnds.jhu.edu>
     Commedia Project <commedia@cnds.jhu.edu>

SEE ALSO
     libsp(3)

SPREAD				    JULY 1998			      SP_POLL(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=SP_poll&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help