An MIO application driver. More...
#include <mio.h>
Data Fields | |
MIOAppSourceFn | app_open_source |
Application source open function. More... | |
MIOAppFn | app_open_sink |
Application sink open function. More... | |
MIOAppFn | app_process |
Application record processing function. More... | |
MIOAppSourceFn | app_close_source |
Application source close function. More... | |
MIOAppFn | app_close_sink |
Application sink close function. More... | |
An MIO application driver.
Applications should pass one of these to mio_dispatch(); the functions are then called in the appropriate order by the mio_dispatch() run loop.
MIOAppFn _MIOAppDriver::app_close_sink |
Application sink close function.
Called after mio_dispatch() has determined that the sink should be closed, but before closing it. Use this to flush any pending application data to the sink, and to clean up after your app_open_sink function.
MIOAppSourceFn _MIOAppDriver::app_close_source |
Application source close function.
Called after mio_dispatch() has determined that the source should be closed, but before closing it. Use this to clean up after your app_open_source function.
MIOAppFn _MIOAppDriver::app_open_sink |
Application sink open function.
Called after a new iteration of a sink has been opened. This function should set up any internal state required to write records, write file or message headers, etc.
MIOAppSourceFn _MIOAppDriver::app_open_source |
Application source open function.
Called after a new iteration of a source has been opened. This function should set up any internal state required to read records, read file or message headers, etc.
MIOAppFn _MIOAppDriver::app_process |
Application record processing function.
Continually called by mio_dispatch(), this function should process a single input record, then return.