mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
27 lines
576 B
C
27 lines
576 B
C
#ifndef _FTP_H_INCLUDE
|
|
#define _FTP_H_INCLUDE
|
|
|
|
typedef struct {
|
|
enum {init, isopen, xfer} state;
|
|
int fd_ctrl;
|
|
int fd_xfer;
|
|
int fd_debug;
|
|
int binary;
|
|
int passive;
|
|
int addrtype;
|
|
char *host;
|
|
char *file;
|
|
} *FTP_t;
|
|
|
|
FTP_t FtpInit();
|
|
int FtpOpen(FTP_t, char *host, char *user, char *passwd);
|
|
#define FtpBinary(ftp,bool) { (ftp)->binary = (bool); }
|
|
#define FtpPassive(ftp,bool) { (ftp)->passive = (bool); }
|
|
int FtpChdir(FTP_t, char *);
|
|
int FtpGet(FTP_t, char *);
|
|
int FtpEOF(FTP_t);
|
|
void FtpClose(FTP_t);
|
|
|
|
#endif
|
|
/* _FTP_H_INCLUDE */
|