![]() |
TSDuck v3.44-4659
MPEG Transport Stream Toolkit
|
Interface class for Reactor handlers. More...
#include <tsReactorHandlerInterface.h>

Public Member Functions | |
| virtual void | handleAsynchronousIO (Reactor &reactor, EventId id, NonBlockingDevice::IOSB &iosb, size_t io_size, int error_code) |
| Handle an asynchronous I/O completion event in a Reactor. | |
| virtual void | handleReadReady (Reactor &reactor, EventId id, int error_code) |
| Handle a read-ready event in a Reactor. | |
| virtual void | handleTimer (Reactor &reactor, EventId id) |
| Handle a timer in a Reactor. | |
| virtual void | handleUserEvent (Reactor &reactor, EventId id) |
| Handle a user-defined event in a Reactor. | |
| virtual void | handleWriteReady (Reactor &reactor, EventId id, int error_code) |
| Handle a write-ready event in a Reactor. | |
Interface class for Reactor handlers.
All methods are empty by default. An application may implement the required ones only.
|
virtual |
Handle a read-ready event in a Reactor.
This handler is only invoked in the non-blocking I/O model.
| [in,out] | reactor | Reactor into which the handler is invoked. |
| [in] | id | Id of the event which was signaled. |
| [in] | error_code | System-specific error code, zero on success, SYS_ERROR in case of unknown error. |
|
virtual |
Handle a write-ready event in a Reactor.
This handler is only invoked in the non-blocking I/O model.
| [in,out] | reactor | Reactor into which the handler is invoked. |
| [in] | id | Id of the event which was signaled. |
| [in] | error_code | System-specific error code, zero on success, SYS_ERROR in case of unknown error. |
|
virtual |
Handle an asynchronous I/O completion event in a Reactor.
This handler is only invoked in the asynchronous I/O model.
| [in,out] | reactor | Reactor into which the handler is invoked. |
| [in] | id | Id of the event which was signaled. |
| [in,out] | iosb | IOSB structure which was used when the asynchronous I/O was started. |
| [in] | io_size | Size of the I/O in bytes. |
| [in] | error_code | System-specific error code, zero on success, SYS_ERROR in case of unknown error, SYS_CANCELED if the I/O was canceled before completion. |