Api routines, Append routine, Line mode option – HP Integrity NonStop H-Series User Manual

Page 102: Append routine line mode option

Advertising
background image

Table 7 FTP Miscellaneous Functions

Function

Command

Prints the error message text associated with the current
error number to the stdout.

FTPerrmsg

Returns the error text associated with the current error
number to the application making the call.

FTPerrtext

Checks that I/O status is completed.

FTPio

Returns a list of file names that matches the pattern
specified. (wait)

FTPlist

Returns a list of file names that matches the pattern
specified. (nowait)

FTPlist_nw

Returns the name of the current working directory. (wait)

FTPpwd

Returns the name of the current working directory. (nowait)

FTPpwd_nw

Retrieve the reply text to buffer up to the buffer size-limit.
(wait)

FTPreplytext

Retrieve the reply text to buffer up to the buffer
size-limit.(nowait)

FTPreplytext_nw

API Routines

The following sections describe the API routines.

Append Routine

The routines FTPappend and FTPappend_nw append a local file to a remote one.

#include "ftpexth"
short FTPappend(short hd, short proxy, char *in,
char *out)
short FTPappend_nw(short hd, short proxy, char *in,
char *out, long tag)

hd

File number.

proxy

1 , this command applies to the proxy connection.

0 , this command applies to the primary connection.

in

local file name to be appended to the remote file.

out

remote file name.

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.

Line Mode Option

The routines FTPasline and FTPasline_nw set the aslinemode option.

NOTE:

FTPasline and FTPasline_nw function only for a direct connection. You cannot use them

with proxy connections.

102 FTP API External Specification

Advertising
This manual is related to the following products: