Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ftpparse.cc File Reference

#include <time.h>
#include "ftpparse.h"

Go to the source code of this file.

Functions

long totai (long year, long month, long mday)
void initbase (void)
void initnow (void)
long guesstai (long month, long mday)
int check (char *buf, char *monthname)
int getmonth (char *buf, int len)
long getlong (char *buf, int len)
int ftpparse (struct ftpparse *fp, char *buf, int len)

Variables

int flagneedbase = 1
time_t base
long now
int flagneedcurrentyear = 1
long currentyear
char * months [12]


Function Documentation

int check char *  buf,
char *  monthname
[static]
 

Definition at line 116 of file ftpparse.cc.

Referenced by getmonth().

int ftpparse struct ftpparse fp,
char *  buf,
int  len
 

Definition at line 145 of file ftpparse.cc.

References base, ftpparse::flagtrycwd, ftpparse::flagtryretr, FTPPARSE_ID_FULL, FTPPARSE_ID_UNKNOWN, FTPPARSE_MTIME_LOCAL, FTPPARSE_MTIME_REMOTEDAY, FTPPARSE_MTIME_REMOTEMINUTE, FTPPARSE_MTIME_UNKNOWN, FTPPARSE_SIZE_BINARY, FTPPARSE_SIZE_UNKNOWN, getlong(), getmonth(), guesstai(), ftpparse::id, ftpparse::idlen, ftpparse::idtype, initbase(), ftpparse::mtime, ftpparse::mtimetype, ftpparse::name, ftpparse::namelen, ftpparse::size, ftpparse::sizetype, and totai().

long getlong char *  buf,
int  len
[static]
 

Definition at line 137 of file ftpparse.cc.

Referenced by ftpparse().

int getmonth char *  buf,
int  len
[static]
 

Definition at line 128 of file ftpparse.cc.

References check(), and months.

Referenced by ftpparse().

long guesstai long  month,
long  mday
[static]
 

Definition at line 101 of file ftpparse.cc.

References currentyear, initnow(), now, and totai().

Referenced by ftpparse().

void initbase void   )  [static]
 

Definition at line 53 of file ftpparse.cc.

References base, flagneedbase, and totai().

Referenced by ftpparse(), and initnow().

void initnow void   )  [static]
 

Definition at line 66 of file ftpparse.cc.

References base, currentyear, flagneedcurrentyear, initbase(), and now.

Referenced by guesstai().

long totai long  year,
long  month,
long  mday
[static]
 

Definition at line 27 of file ftpparse.cc.

Referenced by ftpparse(), guesstai(), and initbase().


Variable Documentation

time_t base [static]
 

Definition at line 48 of file ftpparse.cc.

Referenced by ftpparse(), initbase(), and initnow().

long currentyear [static]
 

Definition at line 51 of file ftpparse.cc.

Referenced by guesstai(), and initnow().

int flagneedbase = 1 [static]
 

Definition at line 47 of file ftpparse.cc.

Referenced by initbase().

int flagneedcurrentyear = 1 [static]
 

Definition at line 50 of file ftpparse.cc.

Referenced by initnow().

char* months[12] [static]
 

Initial value:

{ "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec" }

Definition at line 124 of file ftpparse.cc.

Referenced by getmonth().

long now [static]
 

Definition at line 49 of file ftpparse.cc.

Referenced by guesstai(), and initnow().


Generated on Tue Oct 5 01:09:21 2004 for WvStreams by doxygen 1.3.7