class Pollable
MyCpp::Referenced
MyCpp::Object
MyCpp::Pollable
Derivatives: MyCpp::NativeFile

An object which is pollable by a file descriptor.

Pollable objects can be polled using a PollGroup.

Methods
virtual int
getFd () = 0
Returns the file descriptor that should be added to a PollGroup.
virtual bool
processInput () = 0
Input callback.
virtual bool
processOutput () = 0
Output callback.
virtual bool
processError () = 0
Error callback.
getFd

Returns the file descriptor that should be added to a PollGroup.

virtual int getFd () = 0
processInput

Input callback.

Should be called when there is input available for the polling file descriptor.

virtual bool processInput  () = 0
processOutput

Output callback.

Should be called when the polling file descriptor is ready for output.

virtual bool processOutput () = 0
processError

Error callback.

Should be called when an error occurs for the polling file descriptor.

virtual bool processError  () = 0