NAME

cat_poll - poll for data on file descriptors

SYNOPSIS

#include <cat.h>

int cat_poll(cat_session *session, int fd_ids, int mseconds);

DESCRIPTION

Waits for mseconds, a number of milliseconds, or until data is present on any of the descriptors indicated by fd_ids of the session. File descriptors are bit values that may be logically ORed together to produce a set of descriptors.

If mseconds is negative, cat_poll() will wait indefinitely.

Returns the set of all descriptors where data is available, 0 on timeout, or a negative code on error.

SEE ALSO

cat