FTP has the following enumeration types.
HF_CNX_TYPE
This method sets the default options. The method is also called when the object is created.
The type of connection between the client and the HostFront server:
|
• |
eCnx_Local : the COM object is registered on the same machine as the HostFront server and the communication between the two
is done through shared memory. Files will be transferred between the HostFront server and the FTP server.
|
|
• |
eCnx_Http : the COM object is registered on the client’s machine and talks to the HostFront server through HTTP requests.
Files will be transferred between the HostFront server and the client’s machine (see the HttpPort property).
|
|
• |
eCnx_TcpIp : Not supported for now |
Prototype
enum
{
eCnx_Unknown = 0 ,
eCnx_Local = 1 ,
eCnx_TcpIp = 2 ,
eCnx_Http = 3 ,
} HF_CNX_TYPE;
HF_FTP_EMUL_TYPE
The type of emulation needed (3270 or 5250).
Prototype
enum
{
eEmul_HFA5250=0,
eEmul_HFA3270=1,
eEmul_Unknown=2,
}HF_FTP_EMUL_TYPE;
HF_FTP_XFER_TYPE
The type of file transfer. Can be either binary or ASCII.
Prototype
enum
{
eXfer_Unknown = 0 ,
eXfer_Ascii = 1 ,
eXfer_Binary = 2 ,
} HF_FTP_XFER_TYPE;