Set file code, Set the connection timeout value, Set file structure – HP Integrity NonStop H-Series User Manual

Page 114

Advertising
background image

Set File Code

The routines FTPsetfilecode and FTPsetfilecode_nw set the file code.

#include "ftpexth"
short FTPsetfilecode(short hd, short proxy,
short filecode)
short FTPsetfilecode_nw(short hd, short proxy,
short filecode, long tag)

hd

File number.

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

filecode

file code to be used.

tag

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

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

Set the Connection Timeout Value

The routines FTPsetcontimer and FTPsetcontimer_nw set the timeout value for accepting the connection
from the server.

#include "ftpexth"
short FTPsetcontimer(short hd, short proxy,
short contimer)

short FTPsetcontimer_nw(short hd, short proxy,
short contimer, long tag)

hd

File number.

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

contimer

a timeout value in seconds. Contimer is a number between 0 and 32767.

tag

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

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

Set File Structure

The routines FTPsetstruct and FTPsetstruct_nw sets the structure of the file to File or Record structure.

#include "ftpexth"
short FTPsetstruct(short hd, short proxy,
char structure)
short FTPsetstruct_nw(short hd, short proxy,
char structure, long tag)

hd

File number.

114

FTP API External Specification

Advertising
This manual is related to the following products: