Open connection to remote host, Establish proxy connection to remote host – HP Integrity NonStop H-Series User Manual
Page 109

proxy
1, this command applies to the proxy connection.
0, this command applies to the primary connection.
dir
name of the directory to be created.
tag
parameters to be used for Guardian nowait operation initiated by FTPmkdir_nw.
The return value is -1 if the routine fails. The error number is set accordingly.
Open Connection to Remote Host
The routines FTPopen and FTPopen_nw open a connection to the remote host.
#include "ftpexth"
short FTPopen(char *host, short port, char *user,
char *passwd, char *acct, char *log)
short FTPopen_nw(char *host, short port, char *user,
char *passwd, char *acct, char *log,
long tag)
host
name of the remote host.
port
port number to be used. If the port number specified < 0, then the system will choose its own
port number.
user
username used to logon.
passwd
password.
acct
account to be used to log on. If acct is set to "", then it is considered as unspecified.
log
name of the log file to be used. All the commands sent and responses received are logged to
the log file. If log file is specified as:
"" - all log messages will be redirected to the home terminal.
$null - all log messages will be discarded.
tag
parameters to be used for the Guardian nowait operation initiated by FTPopen_nw.
The return value is -1 if the routine fails. The error number is set accordingly. Otherwise, it is the
file number associated with this connection.
Establish Proxy Connection to Remote Host
The routines FTPproxy and FTPproxy_nw establishes a proxy connection to the remote host.
#include "ftpexth"
short FTPproxy(short hd, char *host, short port,
char *user, char *passwd, char *acct)
short FTPproxy_nw(short hd, char *host, short port,
char *user, char *passwd, char *acct,
long tag)
API Routines 109