diff options
| author | Michael Brown | 2007-05-28 22:11:02 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-05-28 22:11:02 +0200 |
| commit | 0dfd5b84fdbe5d6ebdf73711f27a43a3ead53531 (patch) | |
| tree | 76004e000f07cbc72aac9797e59d965868739041 /src/include/gpxe/ftp.h | |
| parent | Add sanity check and extra debug message (diff) | |
| download | ipxe-0dfd5b84fdbe5d6ebdf73711f27a43a3ead53531.tar.gz ipxe-0dfd5b84fdbe5d6ebdf73711f27a43a3ead53531.tar.xz ipxe-0dfd5b84fdbe5d6ebdf73711f27a43a3ead53531.zip | |
Updated FTP to use data-xfer API.
Diffstat (limited to 'src/include/gpxe/ftp.h')
| -rw-r--r-- | src/include/gpxe/ftp.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/include/gpxe/ftp.h b/src/include/gpxe/ftp.h index 41eca8ca4..370285c6a 100644 --- a/src/include/gpxe/ftp.h +++ b/src/include/gpxe/ftp.h @@ -7,63 +7,7 @@ * */ -#include <stdint.h> -#include <gpxe/async.h> -#include <gpxe/stream.h> - -struct buffer; - /** FTP default port */ #define FTP_PORT 21 -/** - * FTP states - * - * These @b must be sequential, i.e. a successful FTP session must - * pass through each of these states in order. - */ -enum ftp_state { - FTP_CONNECT = 0, - FTP_USER, - FTP_PASS, - FTP_TYPE, - FTP_PASV, - FTP_RETR, - FTP_QUIT, - FTP_DONE, -}; - -/** - * An FTP request - * - */ -struct ftp_request { - /** URI being fetched */ - struct uri *uri; - /** Data buffer to fill */ - struct buffer *buffer; - /** Asynchronous operation */ - struct async async; - - /** Current state */ - enum ftp_state state; - /** Amount of current message already transmitted */ - size_t already_sent; - /** Buffer to be filled with data received via the control channel */ - char *recvbuf; - /** Remaining size of recvbuf */ - size_t recvsize; - /** FTP status code, as text */ - char status_text[4]; - /** Passive-mode parameters, as text */ - char passive_text[24]; /* "aaa,bbb,ccc,ddd,eee,fff" */ - /** Stream application for the control channel */ - struct stream_application stream; - /** Stream application for the data channel */ - struct stream_application stream_data; -}; - -extern int ftp_get ( struct uri *uri, struct buffer *buffer, - struct async *parent ); - #endif /* _GPXE_FTP_H */ |
