typedef ref_ptr<XrlSocketCommandBase> Command | Command |
XrlSocketCommandDispatcher (XrlSender& xs)
| XrlSocketCommandDispatcher |
~XrlSocketCommandDispatcher ()
| ~XrlSocketCommandDispatcher |
[pure virtual]
void enqueue (const Command& cmd)
| enqueue |
Enqueue an Xrl command for dispatch. If queue is empty, command is sent immediately for dispatch. When dispatch completes xrl_cb() is called with the response.
inline bool queue_empty ()
| queue_empty |
[const]
bool send_next ()
| send_next |
[protected]
Send next Xrl enqueued (if any).
Returns: true if next xrl sent, false if queue is empty or send failed.
void xrl_cb (const XrlError& xe)
| xrl_cb |
[protected pure virtual]
Method invoked when an Xrl dispatch is completed. Implementations should call send_next() to trigger next queued XrlSocketCommandBase object to be dispatched.
Parameters:
xe | Xrl error object. |