X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fftp.h;h=2d69ce74b382f45cc83cc1aa39b7799212dcc3bd;hb=4577dd26b3ecbf7ccc5ff55efa991334136866e1;hp=c843e537dde44ff5e2aa337cf004fd41dbfe7d7c;hpb=2ba6401e39bcfaaccaa45e6b7ef780a7a15b0c48;p=oftp diff --git a/src/ftp.h b/src/ftp.h index c843e53..2d69ce7 100644 --- a/src/ftp.h +++ b/src/ftp.h @@ -11,6 +11,11 @@ struct ftp_dirent { struct ftp { int ctl, data; /* sockets */ + char crecv[256]; + int num_crecv; + char drecv[256]; + int num_drecv; + char *cwd; struct ftp_dirent *dent; int num_dent; @@ -22,6 +27,11 @@ void ftp_free(struct ftp *ftp); int ftp_connect(struct ftp *ftp, const char *host, int port); void ftp_close(struct ftp *ftp); +int ftp_sockets(struct ftp *ftp, int *sockv, int maxsize); +int ftp_pending(struct ftp *ftp); + +int ftp_handle(struct ftp *ftp, int s); + int ftp_update(struct ftp *ftp); int ftp_chdir(struct ftp *ftp, const char *dirname);