Qore Programming Language Reference Manual
1.12.2
|
Socket poll operation object returned by Socket polling methods. More...
Public Member Methods | |
constructor (Socket socket, string goal, *hash< auto > opts) | |
Creates the object with the given goal. More... | |
*hash< SocketPollInfo > | continuePoll () |
Returns a socket poll hash if polling should continue or NOTHING if complete. More... | |
copy () | |
Throws an exception; objects of this class cannot be copied. More... | |
destructor () | |
Destroys the object. More... | |
Public Member Methods inherited from Qore::SocketPollOperationBase | |
constructor () | |
Throws an exception; this class is not usable by Qore classes. More... | |
destructor () | |
Destroys the object. | |
string | getGoal () |
Returns the goal. More... | |
auto | getOutput () |
Returns any output generated by any completed poll action. More... | |
string | getState () |
Returns the current state. More... | |
bool | goalReached () |
Returns True when the goal as been reached. More... | |
Public Member Methods inherited from Qore::AbstractPollOperation | |
auto | getOutput () |
Returns any output generated by any completed poll action. More... | |
Socket poll operation object returned by Socket polling methods.
This class implements the polling logic for Sockets and the state machine behind it
private members:
Creates the object with the given goal.
socket | the Socket object to poll |
goal | the type of goal; currently one of:
|
opts | required keys depend on goal
|
INVALID-GOAL | thrown if the goal is invalid |
|
virtual |
Returns a socket poll hash if polling should continue or NOTHING if complete.
Implements Qore::AbstractPollOperation.
Qore::SocketPollOperation::copy | ( | ) |
Throws an exception; objects of this class cannot be copied.
SOCKETPOLLOPERATION-COPY-ERROR | objects of this class cannot be copied |
Qore::SocketPollOperation::destructor | ( | ) |
Destroys the object.
Destroys the object