lib60870.NET
2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
|
Simple implementation of IFileProvider that can be used to provide transparent files. Derived classed should override the TransferComplete method. More...
Public Member Functions | |
TransparentFile (int ca, int ioa, NameOfFile nof) | |
void | AddSection (byte[] section) |
int | GetCA () |
Returns the CA (Comman address) of the file More... | |
int | GetIOA () |
Returns the IOA (information object address of the file) More... | |
NameOfFile | GetNameOfFile () |
DateTime | GetFileDate () |
int | GetFileSize () |
Gets the size of the file in bytes More... | |
int | GetSectionSize (int sectionNumber) |
Gets the size of a section in byzes More... | |
bool | GetSegmentData (int sectionNumber, int offset, int segmentSize, byte[] segmentData) |
Gets the segment data. More... | |
virtual void | TransferComplete (bool success) |
Indicates that the transfer is complete. When success equals true the file data can be deleted More... | |
Simple implementation of IFileProvider that can be used to provide transparent files. Derived classed should override the TransferComplete method.
int lib60870.CS101.TransparentFile.GetCA | ( | ) |
int lib60870.CS101.TransparentFile.GetFileSize | ( | ) |
Gets the size of the file in bytes
Implements lib60870.CS101.IFileProvider.
int lib60870.CS101.TransparentFile.GetIOA | ( | ) |
Returns the IOA (information object address of the file)
Implements lib60870.CS101.IFileProvider.
int lib60870.CS101.TransparentFile.GetSectionSize | ( | int | sectionNumber | ) |
Gets the size of a section in byzes
sectionNumber | Number of section (starting with 0) |
Implements lib60870.CS101.IFileProvider.
bool lib60870.CS101.TransparentFile.GetSegmentData | ( | int | sectionNumber, |
int | offset, | ||
int | segmentSize, | ||
byte [] | segmentData | ||
) |
Gets the segment data.
true
, if segment data was gotten, false
otherwise.sectionNumber | Section number. |
offset | Offset. |
segmentSize | Segment size. |
segmentData | Segment data. |
Implements lib60870.CS101.IFileProvider.
|
virtual |
Indicates that the transfer is complete. When success equals true the file data can be deleted
success | If set to true success. |
Implements lib60870.CS101.IFileProvider.