Log on as another user, Create directory on remote machine – HP Integrity NonStop H-Series User Manual
Page 108
proxy
1, this command applies to the proxy connection.
0, this command applies to the primary connection.
pattern
pattern to be matched.
buffer
buffer area to hold the return results. The list of file names will be separated by CRLF.
limit
maximum number of bytes that the buffer can hold. If the return list is longer than the limit, the
error number will be set to TRUNCATED, and data up to limit size will be returned in the buffer.
tag
parameter to be used for the GUARDIAN nowait operation initiated by FTPlist_nw.
The return value is -1 if the routine fails. The error number is set accordingly.
Log On as Another User
The routines FTPlogin and FTPlogin_nw allow the user to log on as another user on an existing
connection.
#include "ftpexth"
short FTPlogin(short hd, short proxy,char *user,
char *passwd, char *acct)
short FTPlogin_nw(short hd, short proxy, char *user,
char *passwd, char *acct, long tag)
hd
File number.
proxy
1, this command applies to the proxy connection.
0, this command applies to the primary connection.
user
username used to log on.
passwd
password.
acct
account to be used to log on. If acct is set to "", then it is considered unspecified.
tag
parameter to be used for the Guardian nowait operation initiated by FTPlogin_nw.
The return value is -1 if the routine fails. The error number is set accordingly.
Create Directory on Remote Machine
The routines FTPmkdir and FTPmkdir_nw create a directory on the remote machine.
#include "ftpexth"
short FTPmkdir(short hd, short proxy, char *dir)
short FTPmkdir_nw(short hd, short proxy, char *dir,
long tag)
hd
file number.
108 FTP API External Specification