source: TI05-delivery/trunk/components/client/ext/bbftpc.h @ 1541

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/components/client/ext/bbftpc.h@1541
Revision 1541, 1.7 KB checked in by spascoe, 14 years ago (diff)

Major directory structure reorganisation.

The python source tree is now divided into 3 components: common,
server and client. Each component has it's own setup.py.

Do "python setup.py bdist_egg" to create 3 eggs for each component.

Some things in the distribution are now out of sync (e.g. documentation) but
the test cases work (I havn't tried the remote test cases).

Line 
1/*
2 * bbftpc/bbftp.c
3 * Copyright (C) 1999, 2000, 2001, 2002 IN2P3, CNRS
4 * bbftp@in2p3.fr
5 * http://doc.in2p3.fr/bbftp
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */ 
21
22/**
23 * Includes and defines for the bbftp client.
24 */
25
26
27#include <bbftp.h>
28
29#include <errno.h>
30#include <fcntl.h>
31#include <netdb.h>
32#include <sys/socket.h>
33#include <arpa/inet.h>
34#include <netinet/in.h>
35#include <pwd.h>
36#include <stdio.h>
37#include <ctype.h>
38#include <sys/stat.h>
39#include <sys/types.h>
40#include <unistd.h>
41#if TIME_WITH_SYS_TIME
42# include <sys/time.h>
43# include <time.h>
44#else
45# if HAVE_SYS_TIME_H
46#  include <sys/time.h>
47# else
48#  include <time.h>
49# endif
50#endif
51#if HAVE_STRING_H
52# include <string.h>
53#endif
54
55#include <client.h>
56#include <client_proto.h>
57#include <common.h>
58#include <config.h>
59#include <structures.h>
60#include <version.h>
61
62#ifdef WITH_SSL
63#include <openssl/rsa.h>
64#endif
65
66#ifdef WITH_GZIP
67# include <zlib.h>
68#endif
69
70#define SETTOZERO    0
71#define SETTOONE     1
72
73#define SSHREMOTECMD "bbftpd -s"
74#define SSHCMD "ssh -q"
75
76#define OPTIONS "qcde:mno:p:P:r:R:tu:vVw:WD::"
Note: See TracBrowser for help on using the repository browser.