ARPDAS_QNX6 1.0
Public Member Functions | Public Attributes
Selectee Class Reference

#include <Selector.h>

Inheritance diagram for Selectee:
Collaboration diagram for Selectee:

List of all members.

Public Member Functions

 Selectee (int fd_in, int flag)
 Selectee ()
 ~Selectee ()
virtual int ProcessData (int flag)=0
virtual TimeoutGetTimeout ()

Public Attributes

int fd
int flags
SelectorStor

Detailed Description

Definition at line 13 of file Selector.h.


Constructor & Destructor Documentation

Selectee::Selectee ( int  fd_in,
int  flag 
)

When fd and flags are known before construction.

Definition at line 11 of file Selectee.cc.

References fd, flags, and Stor.

Selectee::Selectee ( )

When fd is opened in the constructor.

Definition at line 20 of file Selectee.cc.

References fd, and flags.

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.


Member Function Documentation

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.

Returns:
a Timeout * indicating the requested timeout value or NULL.

Definition at line 43 of file Selectee.cc.

Referenced by Selector::event_loop().

Here is the caller graph for this function:

virtual int Selectee::ProcessData ( int  flag) [pure virtual]
Returns:
non-zero if we should quit

Implemented in TM_Selectee, and Cmd_Selectee.

Referenced by Selector::event_loop().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 26 of file Selector.h.

Referenced by Selector::add_child(), TM_Selectee::ProcessData(), and Selectee().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines