lftp  4.4.6
About: lftp is a command line ftp client (FTP, HTTP, ssl support, background transfer, reget, reput, ...)
  Fossies Dox: lftp-4.4.6.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
HFtp Class Reference

#include <Http.h>

Inheritance diagram for HFtp:
Collaboration diagram for HFtp:

Public Member Functions

 HFtp ()
 
 HFtp (const HFtp *)
 
 ~HFtp ()
 
const char * GetProto () const
 
FileAccessClone () const
 
virtual void Login (const char *, const char *)
 
virtual void Reconfig (const char *)
 
- Public Member Functions inherited from Http
 Http ()
 
 Http (const Http *)
 
 ~Http ()
 
FileSetParseLongList (const char *buf, int len, int *err=0) const
 
int Do ()
 
int Done ()
 
int Read (void *, int)
 
int Write (const void *, int)
 
int StoreStatus ()
 
int SendEOT ()
 
int Buffered ()
 
void ResetLocationData ()
 
void Close ()
 
const char * CurrentStatus ()
 
bool SameSiteAs (const FileAccess *fa) const
 
bool SameLocationAs (const FileAccess *fa) const
 
DirListMakeDirList (ArgV *a)
 
GlobMakeGlob (const char *pattern)
 
ListInfoMakeListInfo (const char *path)
 
void UseCache (bool use)
 
bool NeedSizeDateBeforehand ()
 
void SuspendInternal ()
 
void ResumeInternal ()
 
void Cleanup ()
 
void CleanupThis ()
 
- Public Member Functions inherited from NetAccess
void Init ()
 
 NetAccess ()
 
 NetAccess (const NetAccess *)
 
 ~NetAccess ()
 
void Reconfig (const char *name=0)
 
void Open (const char *fn, int mode, off_t offs)
 
void ResetLocationData ()
 
void Close ()
 
int CountConnections ()
 
- Public Member Functions inherited from FileAccess
bool SameProtoAs (const FileAccess *fa) const
 
virtual const char * ProtocolSubstitution (const char *host)
 
const char * GetVisualProto () const
 
void SetVisualProto (const char *p)
 
const char * GetHome () const
 
const char * GetHostName () const
 
const char * GetUser () const
 
const char * GetPassword () const
 
const char * GetPort () const
 
const char * GetConnectURL (int flags=0) const
 
const char * GetFileURL (const char *file, int flags=0) const
 
void Connect (const char *h, const char *p)
 
void ConnectVerify ()
 
void PathVerify (const Path &)
 
virtual void AnonymousLogin ()
 
void Open2 (const char *f1, const char *f2, open_mode m)
 
void SetFileURL (const char *u)
 
void SetLimit (off_t lim)
 
void SetSize (off_t s)
 
void SetDate (time_t d)
 
void WantDate (FileTimestamp *d)
 
void WantSize (off_t *s)
 
void AsciiTransfer ()
 
void Rename (const char *rfile, const char *to)
 
void Link (const char *f1, const char *f2)
 
void Symlink (const char *f1, const char *f2)
 
void Mkdir (const char *rfile, bool allpath=false)
 
void Chdir (const char *dir, bool verify=true)
 
void ChdirAccept ()
 
void SetCwd (const Path &new_cwd)
 
void Remove (const char *rfile)
 
void RemoveDir (const char *dir)
 
void Chmod (const char *file, int m)
 
void GetInfoArray (FileSet *info)
 
int InfoArrayPercentDone ()
 
virtual bool IOReady ()
 
off_t GetPos ()
 
off_t GetRealPos ()
 
void SeekReal ()
 
void RereadManual ()
 
const PathGetCwd () const
 
const PathGetNewCwd () const
 
const char * GetFile () const
 
bool IsBetterThan (const FileAccess *fa) const
 
void Init ()
 
 FileAccess ()
 
 FileAccess (const FileAccess *)
 
virtual ~FileAccess ()
 
void DontSleep ()
 
bool IsClosed ()
 
bool IsOpen ()
 
int OpenMode ()
 
int GetErrorCode ()
 
virtual const char * StrError (int err)
 
void CleanupAll ()
 
const char * GetNewLocation ()
 
const char * GetSuggestedFileName ()
 
const char * GetEntityContentType ()
 
const char * GetEntityCharset ()
 
void SetPasswordGlobal (const char *p)
 
void InsecurePassword (bool i)
 
void SetPriority (int p)
 
int GetPriority () const
 
int GetRetries ()
 
void SetRetries (int r)
 
time_t GetTryTime ()
 
void SetTryTime (time_t t)
 
const char * GetLogContext ()
 
- Public Member Functions inherited from SMTask
void Suspend ()
 
void Resume ()
 
void SuspendSlave ()
 
void ResumeSlave ()
 
bool IsSuspended ()
 
 SMTask ()
 
virtual ~SMTask ()
 
void DeleteLater ()
 
void IncRefCount ()
 
void DecRefCount ()
 
int Roll ()
 
void Enter ()
 
void Leave ()
 

Static Public Member Functions

static FileAccessNew ()
 
- Static Public Member Functions inherited from Http
static void ClassInit ()
 
static FileAccessNew ()
 
static time_t atotm (const char *time_string)
 
- Static Public Member Functions inherited from NetAccess
static void ClassInit ()
 
- Static Public Member Functions inherited from FileAccess
static bool NotSerious (int err)
 
static void Register (const char *proto, SessionCreator *creator)
 
static FileAccessNew (const char *proto, const char *host=0, const char *port=0)
 
static FileAccessNew (const class ParsedURL *u, bool dummy=true)
 
static void ClassInit ()
 
static void ClassCleanup ()
 
- Static Public Member Functions inherited from SMTask
static void Block (int fd, int mask)
 
static void Timeout (int ms)
 
static void TimeoutS (int s)
 
static void UpdateNow ()
 
static void Schedule ()
 
static int CollectGarbage ()
 
static void Block ()
 
static void Delete (SMTask *)
 
static SMTask_MakeRef (SMTask *task)
 
static void _DeleteRef (SMTask *task)
 
static SMTask_SetRef (SMTask *task, SMTask *new_task)
 
template<typename T >
static T * MakeRef (T *task)
 
static int Roll (SMTask *)
 
static void RollAll (const TimeInterval &max_time)
 
static void Enter (SMTask *task)
 
static void Leave (SMTask *task)
 
static int TaskCount ()
 
static void PrintTasks ()
 
static bool NonFatalError (int err)
 
static bool TemporaryNetworkError (int err)
 
static void Cleanup ()
 
- Static Public Member Functions inherited from ResClient
static void ReconfigAll (const char *)
 

Additional Inherited Members

- Public Types inherited from FileAccess
enum  open_mode {
  CLOSED, RETRIEVE, STORE, LONG_LIST,
  LIST, MP_LIST, CHANGE_DIR, MAKE_DIR,
  REMOVE_DIR, REMOVE, QUOTE_CMD, RENAME,
  ARRAY_INFO, CONNECT_VERIFY, CHANGE_MODE, LINK,
  SYMLINK
}
 
enum  { NO_PATH =1, WITH_PASSWORD =2, NO_PASSWORD =4, NO_USER =8 }
 
enum  status {
  IN_PROGRESS =1, OK =0, SEE_ERRNO =-100, LOOKUP_ERROR,
  NOT_OPEN, NO_FILE, NO_HOST, FILE_MOVED,
  FATAL, STORE_FAILED, LOGIN_FAILED, DO_AGAIN,
  NOT_SUPP
}
 
typedef FileAccessSessionCreator ()
 
- Static Public Attributes inherited from FileAccess
static class LsCachecache
 
- Protected Types inherited from SMTask
enum  { STALL =0, MOVED =1, WANTDIE =2 }
 
- Protected Member Functions inherited from NetAccess
void ClearPeer ()
 
void NextPeer ()
 
bool CheckTimeout ()
 
void SetSocketBuffer (int sock)
 
void SetSocketMaxseg (int sock)
 
int SocketCreate (int af, int type, int proto)
 
int SocketCreateTCP (int af)
 
int Poll (int fd, int ev)
 
int CheckHangup (const struct pollfd *pfd, int num)
 
void PropagateHomeAuto ()
 
const char * FindHomeAuto ()
 
void SayConnectingTo ()
 
void SetProxy (const char *)
 
int Resolve (const char *defp, const char *ser, const char *pr)
 
const char * DelayingMessage ()
 
bool ReconnectAllowed ()
 
bool CheckRetries ()
 
bool NextTry ()
 
void TrySuccess ()
 
virtual void HandleTimeout ()
 
- Static Protected Member Functions inherited from NetAccess
static bool NoProxy (const char *)
 
- Protected Attributes inherited from Http
bool hftp
 
bool https
 
bool use_head
 
- Static Protected Attributes inherited from FileAccess
static FileAccesschain =0
 

Detailed Description

Definition at line 205 of file Http.h.

Constructor & Destructor Documentation

HFtp::HFtp ( )

Definition at line 2153 of file Http.cc.

References FileAccess::default_cwd, Http::hftp, and Reconfig().

Referenced by Clone(), and New().

HFtp::HFtp ( const HFtp o)

Definition at line 2162 of file Http.cc.

References Http::hftp, and Reconfig().

HFtp::~HFtp ( )

Definition at line 2159 of file Http.cc.

Member Function Documentation

FileAccess* HFtp::Clone ( ) const
inlinevirtual

Reimplemented from Http.

Definition at line 214 of file Http.h.

References HFtp().

const char* HFtp::GetProto ( ) const
inlinevirtual

Reimplemented from Http.

Definition at line 212 of file Http.h.

void HFtp::Login ( const char *  u,
const char *  p 
)
virtual

Reimplemented from FileAccess.

Definition at line 2167 of file Http.cc.

References FileAccess::cwd, FileAccess::home, and FileAccess::Path::Set().

FileAccess * HFtp::New ( )
static

Definition at line 1566 of file Http.cc.

References HFtp().

Referenced by Http::ClassInit().

void HFtp::Reconfig ( const char *  name)
virtual

Reimplemented from Http.

Definition at line 2176 of file Http.cc.

References ResClient::QueryBool(), and Http::use_head.

Referenced by HFtp().


The documentation for this class was generated from the following files: