diff options
author | Miles Bader <miles@gnu.org> | 1997-09-02 22:31:44 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-09-02 22:31:44 +0000 |
commit | a7e6382afb269127ea806def42937858a80e24e3 (patch) | |
tree | aea60ff695d65bbfb25c0075e40d09557d35b6b9 /libftpconn/ftpconn.h | |
parent | b7f616615a7b65bb536802bcd1650d5bdb57bb37 (diff) |
(struct ftp_conn):
Add the ACTV_DATA_ADDR and ACTV_DATA_CONN_QUEUE fields.
Add USE_PASSIVE field.
Diffstat (limited to 'libftpconn/ftpconn.h')
-rw-r--r-- | libftpconn/ftpconn.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libftpconn/ftpconn.h b/libftpconn/ftpconn.h index 445f5b38..67eec5aa 100644 --- a/libftpconn/ftpconn.h +++ b/libftpconn/ftpconn.h @@ -157,7 +157,7 @@ struct ftp_conn const struct ftp_conn_hooks *hooks; /* Customization hooks. */ struct ftp_conn_syshooks syshooks; /* host-dependent hook functions */ - int syshooks_valid; /* True if the system type has been determined. */ + int syshooks_valid : 1; /* True if the system type has been determined. */ int control; /* fd for ftp control connection */ @@ -173,6 +173,12 @@ struct ftp_conn const char *type; /* Connection type, or 0 if default. */ void *hook; /* Random user data. */ + + int use_passive : 1; /* If true, first try passive data conns. */ + + /* These are only used if active data connections are in use. */ + struct sockaddr *actv_data_addr;/* Address of port for active data conns. */ + int actv_data_conn_queue; /* A socket to accept data connections on. */ }; /* Parameters for an ftp connection; doesn't include any actual connection |