2005-07-20 00:30:40 +00:00
|
|
|
/*
|
|
|
|
* ftp.h: interface for basic handling of an FTP command connection
|
|
|
|
* to check for directory availability. No transfer is needed.
|
|
|
|
*
|
|
|
|
* Reference: RFC 959
|
2005-08-05 01:06:17 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
2005-07-20 00:30:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MIRRORS_FTP_H__
|
|
|
|
#define __MIRRORS_FTP_H__
|
|
|
|
typedef void (*ftpListCallback) (void *userData,
|
2005-07-28 04:48:27 +00:00
|
|
|
const char *filename, const char *attrib,
|
|
|
|
const char *owner, const char *group,
|
|
|
|
unsigned long size, int links, int year,
|
|
|
|
const char *month, int day, int minute);
|
2005-07-20 00:30:40 +00:00
|
|
|
|
|
|
|
typedef void (*ftpDataCallback) (void *userData,
|
2005-07-28 04:48:27 +00:00
|
|
|
const char *data, int len);
|
2005-07-20 00:30:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern void initFtp(void);
|
|
|
|
extern int connectFtp(const char *server, int port);
|
|
|
|
extern int changeFtpDirectory(char *directory);
|
|
|
|
extern int disconnectFtp(void);
|
|
|
|
int getFtp(ftpDataCallback, void *, const char *);
|
|
|
|
|
2005-07-28 04:48:27 +00:00
|
|
|
#endif /* __MIRRORS_FTP_H__ */
|