Close connection, Change directory—remote machine, Close connection change directory—remote machine – HP Integrity NonStop H-Series User Manual
Page 103

#include "ftpexth"
short FTPasline(short hd, short proxy, short mode)
short FTPasline_nw(short hd, short proxy, short mode,
long tag)
hd
File number.
proxy
1 , his command applies to the proxy connection.Do not specify 1. If you do, you will receive
an error 414 (NOT_PROXY) when the call executes.
0 , this command applies to the primary connection.
mode
valid options includes: NONE, WRAP and CUT.
tag
tag parameter to be used for GUARDIAN nowait operation initiated by FTPappend_nw.
The return value is -1 if it fails, otherwise it is successful.
Close Connection
The routine FTPbye closes the connection, and deallocates resources associated with the connection.
#include "ftpexth"
short FTPbye(short hd, short proxy)
hd
File number.
proxy
1 , this command applies to the proxy connection.
0 , this command applies to the primary connection.
The return value is -1 if it fails, otherwise it is successful.
Change Directory—Remote Machine
The routines FTPcd and FTPcd_nw change the directory on a remote machine.
#include "ftpexth"
short FTPcd(short hd, short proxy, char *dir)
short FTPcd_nw(short hd, short proxy, char *dir,
long tag)
hd
File number.
proxy
1 , this command applies to the proxy connection.
0 , this command applies to the primary connection.
dir
target directory name.
tag
parameter to be used for the GUARDIAN nowait operation initiated by FTPcd_nw.
The return value is -1 if the routine fails, otherwise the routine is successful. The error number is set
accordingly.
API Routines 103