Valadoc | Vala | Tutorial | API-References | Markup

Poll


Object Hierarchy:

Object hierarchy for Poll

Description:

public class Poll

A Poll keeps track of file descriptors much like fd_set (used with select) or a struct pollfd array (used with poll). Once created with Poll, the set can be used to wait for file descriptors to be readable and/or writeable. It is possible to make this wait be controlled by specifying true for the controllable flag when creating the set (or later calling set_controllable). New file descriptors are added to the set using add_fd, and removed using remove_fd . Controlling which file descriptors should be waited for to become readable and/or writeable are done using ctl_read and ctl_write. Use wait to wait for the file descriptors to actually become readable and/or writeable, or to timeout if no file descriptor is available in time. The wait can be controlled by calling restart and set_flushing. Once the file descriptor set has been waited for, one can use has_closed to see if the file descriptor has been closed, has_error to see if it has generated an error, can_read to see if it is possible to read from the file descriptor, and can_write to see if it is possible to write to it.


Namespace: Gst
Package: gstreamer-0.10

Content:

Creation methods:

Methods: