![]() |
Qore Programming Language Reference Manual 2.1.1
|
Abstract poll operation objects provide the polling interface for pollable objects. More...
#include <QC_AbstractPollOperation.dox.h>
Public Member Functions | |
| nothing | abort () |
| Aborts any asynchroous operation in progress and closes the connected object. | |
| abstract *hash< SocketPollInfo > | continuePoll () |
| Returns a socket poll hash if polling should continue or NOTHING if complete. | |
| abstract string | getGoal () |
| Returns the goal. | |
| auto | getOutput () |
| Returns any output generated by any completed poll action. | |
| abstract string | getState () |
| Returns the current state. | |
| abstract bool | goalReached () |
| Returns True when the goal as been reached. | |
Abstract poll operation objects provide the polling interface for pollable objects.
This class implements polling logic for pollable operations and the state machine behind it
| nothing Qore::AbstractPollOperation::abort | ( | ) |
Aborts any asynchroous operation in progress and closes the connected object.
Reimplement in child classes to abort the operation
| abstract *hash< SocketPollInfo > Qore::AbstractPollOperation::continuePoll | ( | ) |
Returns a socket poll hash if polling should continue or NOTHING if complete.
| abstract string Qore::AbstractPollOperation::getGoal | ( | ) |
Returns the goal.
| auto Qore::AbstractPollOperation::getOutput | ( | ) |
Returns any output generated by any completed poll action.
| abstract string Qore::AbstractPollOperation::getState | ( | ) |
Returns the current state.