TFTPServer Property

The address of the TFTP server to exchange files with.

Syntax

ANSI (Cross Platform)
char* GetTFTPServer();
int SetTFTPServer(const char* lpszTFTPServer); Unicode (Windows) LPWSTR GetTFTPServer();
INT SetTFTPServer(LPCWSTR lpszTFTPServer);
@property (nonatomic,readwrite,assign,getter=TFTPServer,setter=setTFTPServer:) NSString* TFTPServer;
- (NSString*)TFTPServer;
- (void)setTFTPServer:(NSString*)newTFTPServer;
#define PID_TFTP_TFTPSERVER 8

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_TFTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_TFTP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

To be able to transfer file via TFTP, the remote host must be running TFTP services on port TFTPPort (default 69).

Example (Get a File)


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

Data Type

String

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