![]() |
dnp3 (.NET API) 1.5.2
|
Callbacks for reading a file from the outstation asynchronously More...
Public Member Functions | |
| bool | Opened (uint size) |
| Called when the file is successfully opened More... | |
| bool | BlockReceived (uint blockNum, System.Collections.Generic.ICollection< byte > data) |
| Called when the next block is received More... | |
| void | Aborted (FileError error) |
| Called when the transfer is aborted before completion due to an error or user request More... | |
| void | Completed () |
| Called when the transfer completes successfully More... | |
Callbacks for reading a file from the outstation asynchronously
| void dnp3.IFileReader.Aborted | ( | FileError | error | ) |
Called when the transfer is aborted before completion due to an error or user request
| error | Error describing why the transfer aborted |
| bool dnp3.IFileReader.BlockReceived | ( | uint | blockNum, |
| System.Collections.Generic.ICollection< byte > | data | ||
| ) |
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.
| blockNum | The block number which increments as the transfer proceeds |
| data | System.Collections.Generic.ICollection<T> of bytes in the block |
| void dnp3.IFileReader.Completed | ( | ) |
Called when the transfer completes successfully
| bool dnp3.IFileReader.Opened | ( | uint | size | ) |
Called when the file is successfully opened
May optionally abort the operation by returning false
| size | Size of the file returned by the outstation |