3 * Copyright (C) 2002 Florin Malita <mali@go.ro>
5 * This file is part of LUFS, a free userspace filesystem implementation.
6 * See http://lufs.sourceforge.net/ for updates.
8 * LUFS is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * LUFS is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #define FTP_MAXLINE 4096
29 #define FTP_MAXFILE 1024
30 #define FTP_MAXTRIES 7
34 char buf[FTP_MAXLINE];
35 string host, user, pass;
40 int execute_open_active(string, string, long long);
41 int execute_open_passive(string, string, long long);
49 FTPConnection(int, char*, unsigned short, char*, char*);
55 int execute(string, int, int);
56 int execute_retry(string, int, int);
57 int execute_open(string, string, long long);