Callbacks for reading a file from the outstation asynchronously.
More...
#include <dnp3.h>
Callbacks for reading a file from the outstation asynchronously.
◆ aborted
Called when the transfer is aborted before completion due to an error or user request.
- Parameters
-
| error | Error describing why the transfer aborted |
| ctx | Context data |
◆ block_received
Called when the next block is received.
May optionally abort the transfer. This allows the application abort on internal errors like being or by user request.
- Parameters
-
| block_num | The block number which increments as the transfer proceeds |
| data | iterator of bytes in the block |
| ctx | Context data |
- Returns
- True to continue, false to abort
◆ completed
| void(* dnp3_file_reader_t::completed) (void *) |
Called when the transfer completes successfully.
- Parameters
-
◆ ctx
| void* dnp3_file_reader_t::ctx |
◆ on_destroy
| void(* dnp3_file_reader_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
- Parameters
-
◆ opened
| bool(* dnp3_file_reader_t::opened) (uint32_t, void *) |
Called when the file is successfully opened.
May optionally abort the operation by returning false
- Parameters
-
| size | Size of the file returned by the outstation |
| ctx | Context data |
- Returns
- True to continue, false to abort
The documentation for this struct was generated from the following file: