4 enum {FTP_DIR, FTP_FILE}; /* ftp_dirent type */
12 int ctl, data; /* sockets */
15 struct ftp_dirent *dent;
19 struct ftp *ftp_alloc(void);
20 void ftp_free(struct ftp *ftp);
22 int ftp_connect(struct ftp *ftp, const char *host, int port);
23 void ftp_close(struct ftp *ftp);
25 int ftp_update(struct ftp *ftp);
26 int ftp_chdir(struct ftp *ftp, const char *dirname);