source: TI05-delivery/trunk/src/bbftp-client-3.2.0/includes/client_proto.h @ 1428

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/bbftp-client-3.2.0/includes/client_proto.h@1428
Revision 1428, 5.2 KB checked in by spascoe, 13 years ago (diff)

Several more includes missing. Stand alone daemon/client are now built
with more warnings displayed.

Line 
1/*
2 * includes/client_proto.h
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
24 
25 
26 client_proto.h v 2.0.0 2001/03/21    - Header creation
27
28*****************************************************************************/
29/*
30** Prototype for store routines
31*/
32int bbftp_storecheckfile(char *filename,char *logmessage,int *errcode) ;
33int bbftp_storechmod(char *filename,int mode,char *logmessage,int  *errcode) ;
34int bbftp_storeclosecastfile(char *filename,char *logmessage) ;
35int bbftp_storecreatefile(char *filename,char *logmessage, int *errcode)  ;
36int bbftp_storemkdir(char *dirname,char *logmessage,int recursif,int *errcode) ;
37int bbftp_storerename(char *newfilename,char *oldfilename,char *logmessage,int  *errcode) ;
38int bbftp_storetransferfile(char *filename,char *logmessage, int *errcode)  ;
39int bbftp_storeunlink(char *filename) ;
40
41int bbftp_storecheckfile_rfio(char *filename,char *logmessage,int *errcode) ;
42int bbftp_storechmod_rfio(char *filename,int mode,char *logmessage,int  *errcode) ;
43int bbftp_storeclosecastfile_rfio(char *filename,char *logmessage) ;
44int bbftp_storecreatefile_rfio(char *filename,char *logmessage, int *errcode)  ;
45int bbftp_storemkdir_rfio(char *dirname,char *logmessage,int recursif,int *errcode) ;
46int bbftp_storerename_rfio(char *newfilename,char *oldfilename,char *logmessage,int  *errcode) ;
47int bbftp_storetransferfile_rfio(char *filename,char *logmessage, int *errcode)  ;
48int bbftp_storeunlink_rfio(char *filename) ;
49/*
50** Prototype for retr routines
51*/
52int bbftp_retrlistdir(char *pattern,char **filelist,int *filelistlen,char *logmessage,int *errcode) ;
53int bbftp_retrcheckdir(char *remotefilename,char *localdir,int *errcode) ;
54int bbftp_retrcheckfile(char *filename,char *logmessage,int *errcode) ;
55int bbftp_retrtransferfile(char *filename,char *logmessage,int *errcode)  ;
56
57int bbftp_retrlistdir_rfio(char *pattern,char **filelist,int *filelistlen,char *logmessage,int *errcode) ;
58int bbftp_retrcheckdir_rfio(char *remotefilename,char *localdir,int *errcode) ;
59int bbftp_retrcheckfile_rfio(char *filename,char *logmessage,int *errcode) ;
60int bbftp_retrtransferfile_rfio(char *filename,char *logmessage,int *errcode)  ;
61/*
62** Prototype for mains routines
63*/
64int bbftp_cd(char *dirpath,int  *errcode) ;
65int bbftp_lcd(char *dirpath,int  *errcode) ;
66int bbftp_list(char *line,char **filelist,int *filelistlen,int *errcode) ;
67int bbftp_get(char *remotefilename,int  *errcode) ;
68int bbftp_mget(char *remotefile,char *localdir, int  *errcode) ;
69int bbftp_mkdir(char *dirpath,int  *errcode) ;
70int bbftp_mput(char *localfile,char *remotedir, int  *errcode) ;
71int bbftp_put(char *remotefilename,int  *errcode) ;
72int bbftp_setremotecos(int cos,int  *errcode) ;
73int bbftp_setremoteumask(int mask,int  *errcode) ;
74/*
75** Prototype for utilities
76*/
77void strip_trailing_slashes (char *path) ;
78void bbftp_close_control()  ;
79void bbftp_free_all_var()  ;
80void bbftp_clean_child() ;
81void PRINTMESSAGE(FILE *strm , int flag, int errcode, int tok, char *fmt, ...) ;
82void Usage() ;
83/*
84** Prototype for signal routines
85*/
86void bbftp_sigchld(int sig) ;
87void bbftp_sigint(int sig) ;
88void bbftp_sigterm(int sig) ;
89void blockallsignals() ;
90void bbftp_setsignals() ;
91void bbftp_setsignal_sigchld() ;
92void bbftp_unsetsignal_sigchld() ;
93/*
94** Prototype for connection routines
95*/
96int connectviassh() ;
97int connectviapassword() ;
98int todoafterconnection();
99void reconnecttoserver() ;
100/*
101** Prototype for sockets routines
102*/
103int discardmessage(int sock,int msglen,int to,int fromchild) ;
104int discardandprintmessage(int sock,int to,int fromchild) ;
105int getdatasock(int nbsock, int *errcode) ;
106int readmessage(int sock,char *buffer,int msglen,int to,int fromchild) ;
107int sendproto() ;
108int writemessage(int sock,char *buffer,int msglen,int to,int fromchild) ;
109
110/*
111** Prototypes missing from v3.2.0 distribution
112*/
113int bbftp_createdatasock(int portnumber/*,char *logmessage*/);
114int bbftp_dir(char *remotefile, int *errcode);
115int bbftp_rm(char *filename,int  *errcode);
116int bbftp_stat(char *filename,int *errcode);
117int bbftp_statfs(char *filename,int  *errcode);
118int bbftp_private_auth(char *logmessage);
119int bbftp_private_getargs(char *logmessage);
120int bbftp_private_connect(void);
121int bbftp_private_send(char *buffertosend, int buffertosendlength, char *logmessage);
122int bbftp_private_recv(char *buffertorecv, int lengthtorecv, char *logmessage);
123int treatcommand(char *buffercmd);
124int translatecommand(char *buffercmd, char **translatedcmd, char **host, int *port, int *remoterfio, int *localrfio);
Note: See TracBrowser for help on using the repository browser.