TFTP Class
Properties Methods Events Configuration Settings Errors
The TFTPClient component is used to exchange files with TFTP servers via the TFTP protocol defined in RFC 783.
Syntax
ipworks.tftp()
Remarks
To use the class, first specify the TFTPServer, then a LocalFile and a RemoteFile, and then call GetFile or PutFile. The Transfer event shows the progress of the transfer.
Potential transmission errors and packet loss are managed by the Timeout property which controls the maximum time to wait for a response from the server, and the MaxRetransmits property which specifies how many times to resend a failed packet before giving up.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
Idle | The current status of the component. |
LocalFile | The file on the local host to transfer the data to/from. |
LocalHost | The name of the local host or user-assigned IP interface through which connections are initiated or accepted. |
MaxRetransmits | The number of times to retry sending a failed packet before disconnecting. |
RemoteFile | The file on the remote host. |
RetransmitTimeout | Maximum time in seconds to wait for a reply packet from the server before retransmitting the last packet. |
TFTPPort | The UDP port where the remote TFTP server is listening. |
TFTPServer | The address of the TFTP server to exchange files with. |
Timeout | A timeout for the component. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
Config | Sets or retrieves a configuration setting . |
DoEvents | Processes events from the internal message queue. |
GetFile | Download a RemoteFile from the TFTP server. |
Interrupt | Interrupt the current method. |
PutFile | Upload a file specified by LocalFile to the TFTP server. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
EndTransfer | Fired when a file completes downloading/uploading. |
Error | Information about errors during data delivery. |
StartTransfer | Fired when a file starts downloading/uploading. |
Transfer | Fired during file download/upload. |
Configuration Settings
The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.
TransferMode | Determines the transfer mode that will be used when transferring a file. |
CaptureIPPacketInfo | Used to capture the packet information. |
DestinationAddress | Used to get the destination address from the packet information. |
DontFragment | Used to set the Don't Fragment flag of outgoing packets. |
LocalHost | The name of the local host through which connections are initiated or accepted. |
LocalPort | The TCP port in the local host where the component binds. |
MaxPacketSize | The maximum length of the packets that can be received. |
ShareLocalPort | If set to True, allows more than one instance of the component to be active on the same local port. |
UseConnection | Determines whether to use a connected socket. |
QOSDSCPValue | Used to specify an arbitrary QOS/DSCP setting (optional). |
QOSTrafficType | Used to specify QOS/DSCP settings (optional). |
UseIPv6 | Whether or not to use IPv6. |
AbsoluteTimeout | Determines whether timeouts are inactivity timeouts or absolute timeouts. |
FirewallData | Used to send extra data to the firewall. |
InBufferSize | The size in bytes of the incoming queue of the socket. |
OutBufferSize | The size in bytes of the outgoing queue of the socket. |
CodePage | The system code page used for Unicode to Multibyte translations. |