News
About us
People
Research
Grants
Publications
Download
Technology Transfer
Spread
Secure Spread
Spines
Backhand
Frugal
Share
Archipelago


SSP_POLL

Section: User Manuals (3)
Updated: JULY 2001

 

NAME

SSP_poll - checks amount of data ready to be read  

SYNOPSIS

#include <ssp.h>
int SSP_poll(mailbox mbox);  

DESCRIPTION

SSP_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 available, and the number of bytes waiting if something is there. Note that although SSP_poll indicates that there are bytes available, SSP_receive will block because the data on the file descriptor is used by Flush and is not intended for the user.

 

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

Cristina Nita-Rotaru <crisn@cnds.jhu.edu>


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
BUGS
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:01:40 GMT, July 06, 2001
Questions or comments to:
webmaster (at) dsn.jhu.edu
TEL: (410) 516-5562
FAX: (410) 516-6134
Distributed Systems and Networks Lab
Computer Science Department
Johns Hopkins University
3400 N. Charles Street Baltimore, MD 21218-2686