PutFile Method

Upload a file specified by LocalFile to the TFTP server.

Syntax

public func putFile() throws -> Void

Remarks

The local file specified by LocalFile is uploaded to the remote file specified by RemoteFile.

Example (Put a File)


TFTPControl.TFTPServer = "MyServer"
TFTPControl.LocalFile = "C:\filename.txt"
TFTPControl.RemoteFile = "/remotefile.txt"
TFTPControl.PutFile()

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 macOS Edition - Version 20.0 [Build 8161]