4 enum {FTP_DIR, FTP_FILE}; /* ftp_dirent type */
12 int ctl, data; /* sockets */
20 struct ftp_dirent *dent;
24 struct ftp *ftp_alloc(void);
25 void ftp_free(struct ftp *ftp);
27 int ftp_connect(struct ftp *ftp, const char *host, int port);
28 void ftp_close(struct ftp *ftp);
30 int ftp_sockets(struct ftp *ftp, int *sockv, int maxsize);
31 int ftp_pending(struct ftp *ftp);
33 int ftp_handle(struct ftp *ftp, int s);
35 int ftp_update(struct ftp *ftp);
36 int ftp_chdir(struct ftp *ftp, const char *dirname);