The bit to use when adding a file descriptor.
#include <bps/bps.h>
typedef enum {
BPS_IO_INPUT = 1 << 0
BPS_IO_OUTPUT = 1 << 1
BPS_IO_EXCEPT = 1 << 2
} bps_io_events_t;
BlackBerry 10.0.0
When you call bps_add_fd() to register an I/O handler with a channel, you specify the type of I/O to monitor with a bitwise OR of the corresponding bps_io_events_t bits.
When the I/O handler is called by the BPS library, the type of I/O event is passed into the second argument of the callback. You can perform a bitwise OR operation on this argument with the values of the bps_io_events_t enumeration to determine the I/O condition that was met.