About PortController
Introduction
Purchasing PortController
Redistributing PortController
License Agreement
Support
Getting Started
How to Use PortController
PortController Sample Projects
Handling PortController Errors
Reference
Properties
AvailableSystemPorts
BaudRate Property
Break Property
BytesUsedRQ Property
BytesUsedTQ Property
Cd Property
Cts Property
DataBits Property
Dsr Property
Dtr Property
DtrDsr Property
EnableReadOnEventChar Property
EventChar Property
ForceBeginInvokeEventFiring Property
IsOpen Property
IsFileTransferInProgress Property
Parity Property
PortHandle Property
PortName Property
ReceiveBufferSize Property
Ring Property
Rts Property
RtsCts Property
StopBits Property
SystemPorts Property
TraceOutput Property
TransmitBufferSize
XoffByte Property
XonByte Property
XonXoff Property
Methods
CancelFileTransfer Method
ClearRQ Method
ClearTQ Method
Close Method
GetErrorStatus Method
Open Method
Read Method
ReadBinary Method
ReceiveFileXModem Method
ReceiveFileXModemCRC Method
ReceiveFileYModem Method
ReceiveFileZModem Method
SendFileXModem Method
SendFileXModem1k Method
SendFileYModem Method
SendFileZModem Method
SimulateReceivedXoff Method
SimulateReceivedXon Method
Write Method
WriteBinary Method
Events
OnBreakSignal Event
OnCdToggle Event
OnCtsToggle Event
OnDataReceived Event
OnDsrToggle Event
OnError Event
OnEventCharReceived Event
OnFileTransferComplete Event
OnFileTransferStatusUpdate Event
OnRing Event
OnTQEmpty Event

OnFileTransferStatusUpdate Event

Fired periodically during a file transfer with information regarding the progress of the operation.

Syntax

[Visual Basic]
Private Sub myPortController_OnFileTransferStatusUpdate(ByVal sender As Object, _
ByVal e As SciCom.PortController.FileTransferStatusEventArgs) Handles _
myPortController.OnFileTransferStatusUpdate

[C#]
private void OnFileTransferStatusUpdate(object sender, SciCom.PortController.FileTransferStatusEventArgs e)

[C++]
System::Void OnFileTransferStatusUpdate(System::Object * sender, SciCom::PortController::FileTransferStatusEventArgs * e)

Parameters

sender

A reference to the PortController object.

e

The arguments associated with the event.

Arguments

FileName: A string containing the name of the file currently being sent or received
BytesTransferred: An integer representing the number of bytes transferred for the file currently being sent or received
FileLength: An integer representing the size of the file being sent or received (if available)

Remarks

  • XMODEM, XMODEM-CRC, XMODEM-1K, and YMODEM require the total number of bytes transferred to be padded to a multiple of 128 or 1024. Therefore, it is possible that the actual number of bytes transferred will be greater than the file length. Even if this occurs, however, the BytesTransferred argument will never be greater than FileLength
  • XMODEM, XMODEM-CRC, and XMODEM-1K do not send any file information to the receiver. Therefore, when receiving a file using one of these protocols, no file length information will be availble. FileLength, therefore, will always be 0.

See Also

OnFileTransferComplete event | IsFileTransferInProgress property | SendFileXModem method | SendFileXModem1k method | SendFileYModem method | SendFileZModem method | ReceiveFileXModem method | ReceiveFileXModemCRC method | ReceiveFileYModem method | ReceiveFileZModem method | CancelFileTransfer method