Clear reply queue, Remove directory on remote machine – HP Integrity NonStop H-Series User Manual

Page 113

Advertising
background image

#include "ftpexth"
short FTPreplytext(short hd, char *buffer, short limit)
short FTPreplytext_nw(short hd, char * buffer,short limit,
long tag)

hd

file number.

buffer

buffer area to hold the result.

limit

maximum number of bytes the buffer can hold. If reply text is longer than the limit, the error
number is set to TRUNCATED,and data up to the limit size is returned in the buffer.

tag

parameter to be used for the Guardian nowait operation Return value -1 if fails. The error
number

The return value is -1 if the routine fails. The error number is set accordingly.

Clear Reply Queue

The routines FTPreset and FTPreset_nw clear the reply queue in order to synchronize with the remote
FTP server.

#include "ftpexth"
short FTPreset(short hd, short proxy)
short FTPreset_nw(short hd, short proxy, long tag)

hd

file number.

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

tag

parameter to be used for the Guardian nowait operation initiated by FTPreset_nw.

The return value is -1 if the routine fails. The error number is set accordingly.

Remove Directory on Remote Machine

The routines FTPrmdir and FTPrmdir_nw removes the directory on a remote machine.

#include "ftpexth"
short FTPrmdir(short hd, short proxy, char *dir)
short FTPrmdir_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

name of the directory to be removed.

tag

parameter to be used for the Guardian nowait operation initiated by FTPrmdir_nw.

The return value is -1 if the routine fails. The error number is set accordingly.

API Routines

113

Advertising
This manual is related to the following products: