diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-13 15:43:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-13 15:43:56 +0000 |
commit | 0befa61281b86858fe3a7f1851aabed997edacfe (patch) | |
tree | c0de8ecbbb1297ed19f66223e38f53cef664a0af /apps/netutils/ftpc/ftpc_internal.h | |
parent | 3e81596316b5ba875b0521406630dbe49b063709 (diff) | |
download | nuttx-0befa61281b86858fe3a7f1851aabed997edacfe.tar.gz nuttx-0befa61281b86858fe3a7f1851aabed997edacfe.tar.bz2 nuttx-0befa61281b86858fe3a7f1851aabed997edacfe.zip |
FTPC simplification and size reduction
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3701 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/ftpc/ftpc_internal.h')
-rw-r--r-- | apps/netutils/ftpc/ftpc_internal.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/netutils/ftpc/ftpc_internal.h b/apps/netutils/ftpc/ftpc_internal.h index 20fbbccc4..314467aa8 100644 --- a/apps/netutils/ftpc/ftpc_internal.h +++ b/apps/netutils/ftpc/ftpc_internal.h @@ -167,10 +167,7 @@ struct ftpc_session_s FAR char *initrdir; /* Initial remote directory */ FAR char *homerdir; /* Remote home directory (currdir on startup) */ FAR char *currdir; /* Remote current directory */ - FAR char *prevrdir; /* Previous remote directory */ - FAR char *rname; /* Remote file name */ FAR char *homeldir; /* Local home directory (PWD on startup) */ - FAR char *lname; /* Local file name */ pid_t pid; /* Task ID of FTP client */ uint8_t xfrmode; /* Previous data transfer type (See FTPC_XFRMODE_* defines) */ uint16_t port; /* Server/proxy port number (probably 21) */ @@ -178,12 +175,11 @@ struct ftpc_session_s uint16_t code; /* Last 3-digit replay code */ uint32_t replytimeo; /* Server replay timeout (ticks) */ uint32_t conntimeo; /* Connection timeout (ticks) */ - off_t filesize; /* Total file size to transfer */ off_t offset; /* Transfer file offset */ off_t size; /* Number of bytes transferred */ - off_t rstrsize; /* restart size */ char reply[CONFIG_FTP_MAXREPLY+1]; /* Last reply string from server */ + char buffer[CONFIG_FTP_BUFSIZE]; /* Used to buffer file data during transfers */ }; /* There is not yet any want to change the local working directly (an lcd @@ -241,7 +237,6 @@ EXTERN int ftpc_relogin(FAR struct ftpc_session_s *session); EXTERN void ftpc_reset(struct ftpc_session_s *session); EXTERN int ftpc_cmd(struct ftpc_session_s *session, const char *cmd, ...); EXTERN int fptc_getreply(struct ftpc_session_s *session); -EXTERN void ftpc_currdir(struct ftpc_session_s *session); EXTERN FAR const char *ftpc_lpwd(void); EXTERN int ftpc_xfrmode(struct ftpc_session_s *session, uint8_t xfrmode); EXTERN FAR char *ftpc_absrpath(FAR struct ftpc_session_s *session, |