1 |
/* Manage an ftp connection |
/* Manage an ftp connection |
2 |
|
|
3 |
Copyright (C) 1997 Free Software Foundation, Inc. |
Copyright (C) 1997,2001 Free Software Foundation, Inc. |
4 |
|
|
5 |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
Written by Miles Bader <miles@gnu.org> |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
60 |
of the host referenced by the PASV reply contained in TXT. */ |
of the host referenced by the PASV reply contained in TXT. */ |
61 |
error_t (*pasv_addr) (struct ftp_conn *conn, const char *txt, |
error_t (*pasv_addr) (struct ftp_conn *conn, const char *txt, |
62 |
struct sockaddr **addr); |
struct sockaddr **addr); |
63 |
|
|
64 |
/* Look at the error string in TXT, and try to guess an error code to |
/* Look at the error string in TXT, and try to guess an error code to |
65 |
return. If POSS_ERRS is non-zero, it contains a list of errors |
return. If POSS_ERRS is non-zero, it contains a list of errors |
66 |
that are likely to occur with the previous command, terminated with 0. |
that are likely to occur with the previous command, terminated with 0. |
238 |
|
|
239 |
void ftp_conn_close (struct ftp_conn *conn); |
void ftp_conn_close (struct ftp_conn *conn); |
240 |
|
|
|
#ifdef __OPTIMIZE__ |
|
241 |
/* Makes sure that CONN's syshooks are set according to the remote system |
/* Makes sure that CONN's syshooks are set according to the remote system |
242 |
type. */ |
type. */ |
243 |
FTP_CONN_EI error_t |
FTP_CONN_EI error_t |
249 |
/* Opening the connection should set the syshooks. */ |
/* Opening the connection should set the syshooks. */ |
250 |
return ftp_conn_open (conn); |
return ftp_conn_open (conn); |
251 |
} |
} |
|
#endif /* __OPTIMIZE__ */ |
|
252 |
|
|
253 |
/* Create a new ftp connection as specified by PARAMS, and return it in CONN; |
/* Create a new ftp connection as specified by PARAMS, and return it in CONN; |
254 |
HOOKS contains customization hooks used by the connection. Neither PARAMS |
HOOKS contains customization hooks used by the connection. Neither PARAMS |
363 |
|
|
364 |
/* Get a list of names in the directory NAME, calling ADD_NAME for each one |
/* Get a list of names in the directory NAME, calling ADD_NAME for each one |
365 |
(HOOK is passed to ADD_NAME). This function may block. */ |
(HOOK is passed to ADD_NAME). This function may block. */ |
366 |
error_t ftp_conn_get_names (struct ftp_conn *conn, const char *name, |
error_t ftp_conn_get_names (struct ftp_conn *conn, const char *name, |
367 |
ftp_conn_add_name_fun_t add_name, void *hook); |
ftp_conn_add_name_fun_t add_name, void *hook); |
368 |
|
|
369 |
/* Give a name which refers to a directory file, and a name in that |
/* Give a name which refers to a directory file, and a name in that |