An object which is pollable by a file descriptor.
Pollable objects can be polled using a PollGroup.
| virtual int |
Returns the file descriptor that should
be added to a PollGroup. | |||
| virtual bool |
Input callback. | |||
| virtual bool |
Output callback. | |||
| virtual bool |
Error callback. |
Returns the file descriptor that should be added to a PollGroup.
virtual int getFd () = 0
Input callback.
Should be called when there is input available for the polling file descriptor.
virtual bool processInput () = 0
Output callback.
Should be called when the polling file descriptor is ready for output.
virtual bool processOutput () = 0
Error callback.
Should be called when an error occurs for the polling file descriptor.
virtual bool processError () = 0