Set transfer type, Display remote computer system name – HP Integrity NonStop H-Series User Manual

Page 115

Advertising
background image

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

structure

valid structure types include:

'F' File

'R' Record

tag

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

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

Set Transfer Type

The routines FTPsettype and FTPsettype_nw set the transfer type to ascii or binary mode.

#include "ftpexth"
short FTPsettype(short hd, short proxy, char type)
short FTPsettype_nw(short hd, short proxy,
char type, long tag)

hd

File number.

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

type

valid types include:

'A' Ascii

'I' Image

'T' Tenex

tag

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

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

Display Remote Computer System Name

The routines FTPsystem and FTPsystem_nw return the system name of the remote machine.

#include "ftpexth"
short FTPsystem(short hd, short proxy,
char *buffer, short limit)
short FTPsystem_nw(short hd, short proxy,
char *buffer, short limit,
long tag)

hd

File number.

proxy

1, this command applies to the proxy connection.

0, this command applies to the primary connection.

buffer

data buffer to hold the return data.

API Routines

115

Advertising
This manual is related to the following products: