remade FILE:// support to look more as the other protocols

This commit is contained in:
Daniel Stenberg
2001-03-05 13:39:01 +00:00
parent ebd6897b10
commit 84e94fda8b
4 changed files with 78 additions and 47 deletions

View File

@@ -183,6 +183,13 @@ struct FTP {
char *entrypath; /* the PWD reply when we logged on */
};
/****************************************************************************
* FILE unique setup
***************************************************************************/
struct FILE {
int fd; /* open file descriptor to read from! */
};
/*
* Boolean values that concerns this connection.
*/
@@ -318,9 +325,9 @@ struct connectdata {
struct HTTP *gopher; /* alias, just for the sake of being more readable */
struct HTTP *https; /* alias, just for the sake of being more readable */
struct FTP *ftp;
struct FILE *file;
#if 0 /* no need for special ones for these: */
struct TELNET *telnet;
struct FILE *file;
struct LDAP *ldap;
struct DICT *dict;
#endif