File:  [Public] / libwww / Library / src / HTFTP.html
Revision 2.38: download - view: text, annotated - select for diffs
Fri Mar 20 17:52:53 1998 UTC (26 years, 2 months ago) by frystyk
Branches: MAIN
CVS tags: Release-5-1l, Release-5-1k, HEAD
version 5.1k

<HTML>
<HEAD>
<TITLE>W3C Sample Code Library libwww FTP CLIENT</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
<NEXTID N="z1">
</HEAD>
<BODY>

<H1>FTP access functions</H1>

<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This is the FTP load module that handles all communication with
FTP-servers. <P>

This module is implemented by <A HREF="HTFTP.c">HTFTP.c</A>, and it is
a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">W3C
Sample Code Library</A>.

<PRE>
#ifndef HTFTP_H
#define HTFTP_H
#include "HTProt.h"

extern HTProtCallback HTLoadFTP;

typedef enum _FTPServerType {
    FTP_GENERIC 	= 0x1,
    FTP_MACHTEN		= 0x2,
    FTP_UNIX		= 0x4,
    FTP_VMS		= 0x8,
    FTP_CMS		= 0x10,
    FTP_DCTS		= 0x20,
    FTP_TCPC		= 0x40,
    FTP_PETER_LEWIS	= 0x80,
    FTP_NCSA		= 0x200,
    FTP_WINNT		= 0x400,
    FTP_UNSURE		= 0x8000
} FTPServerType;

#define MAX_FTP_LINE	128			 /* Don't use more than this */
</PRE>

<H2>
  Global Transfer Mode
</H2>

Can be used to set the default transfer mode overruling what may be
indicated in the FTP URL.<P>
Added by Neil Griffin, <a href="http://www.gainsoft.com">GAIN Software</a>

<PRE>
typedef enum _FTPTransferMode {
    FTP_DEFAULT_TRANSFER_MODE   = 0,
    FTP_ASCII_TRANSFER_MODE     = 1,
    FTP_BINARY_TRANSFER_MODE    = 2,
    FTP_DIR_TRANSFER_MODE       = 3
} FTPTransferMode;

extern FTPTransferMode HTFTP_transferMode (void);
extern void HTFTP_setTransferMode (FTPTransferMode mode);
</PRE>

<PRE>
#endif
</PRE>

<HR>
<ADDRESS>
@(#) $Id: HTFTP.html,v 2.38 1998/03/20 17:52:53 frystyk Exp $
</ADDRESS>
</BODY>
</HTML>

Webmaster