ARPDAS_QNX6 1.0
|
#include <Selector.h>
Public Member Functions | |
Selectee (int fd_in, int flag) | |
Selectee () | |
~Selectee () | |
virtual int | ProcessData (int flag)=0 |
virtual Timeout * | GetTimeout () |
Public Attributes | |
int | fd |
int | flags |
Selector * | Stor |
Definition at line 13 of file Selector.h.
Selectee::Selectee | ( | int | fd_in, |
int | flag | ||
) |
When fd and flags are known before construction.
Definition at line 11 of file Selectee.cc.
Selectee::Selectee | ( | ) |
When fd is opened in the constructor.
Definition at line 20 of file Selectee.cc.
Selectee::~Selectee | ( | ) |
Closes the fd if it is non-negative. Hence the fd value should be set to -1 if the fd is closed for any reason. And the fd should not be closed for any reason until the event loop has terminated. This is clearly a feature that needs updating.
Definition at line 31 of file Selectee.cc.
References fd.
Timeout * Selectee::GetTimeout | ( | ) | [virtual] |
Virtual method to allow Selectee to bid on the select() timeout along with the Selector. The minimum timeout value is used.
Definition at line 43 of file Selectee.cc.
Referenced by Selector::event_loop().
virtual int Selectee::ProcessData | ( | int | flag | ) | [pure virtual] |
Implemented in TM_Selectee, and Cmd_Selectee.
Referenced by Selector::event_loop().
int Selectee::fd |
Definition at line 24 of file Selector.h.
Referenced by Selector::add_child(), Selector::delete_child(), Selector::event_loop(), Ser_Sel::fillbuf(), Ser_Sel::init(), TM_Selectee::init(), Selectee(), Ser_Sel::sersel_init(), Ser_Sel::setup(), ~Selectee(), and TM_Selectee::~TM_Selectee().
int Selectee::flags |
Definition at line 25 of file Selector.h.
Referenced by Selector::event_loop(), Ser_Sel::init(), TM_Selectee::init(), Selectee(), and Selector::update_flags().
Definition at line 26 of file Selector.h.
Referenced by Selector::add_child(), TM_Selectee::ProcessData(), and Selectee().