Ftpget() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

ftpGet()

NOTE
Transfers the file from the FTP server to the terminal.
This function logs in to the FTP server, retrieves the file, and logs off.
Prototype
int result = netGetConfig(net_conf_t *net)
Parameters
net
typedef struct{
char ftpHost[32];
char port[8];
char userID[32];
char password[32];
char localFile[64];
char
remoteFile[64];
char errorMsg[64];
} ftp_parm_t;
Return Values
0
Success, network interface is up.
< 0
Error, probably network interface is down.
Pointer to the FTP parameter structure.
ftpHost
port
userID
password
localFile
remoteFile
errorMsg
TCP/IP E
In the "xxx.xxx.xxx.xxx" IP
address format or the fully
qualified domain name format
ftp.site.com
FTP port. Defaults to 21 if not
specified.
FTP user name
FTP password
Local file name, with directory
path (relative to "/home/
usr1/")
Remote file name:
For ftpGet(), this is the
directory pathname and
filename.
For ftpPut(), this is the
directory pathname only.
Returns the verbose error
message
X
M
800 S
P
ERIES
ROGRAMMERS
THERNET
ftpGet()
213
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents