This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/mbsebbs/transfer.h
2004-11-06 16:27:46 +00:00

45 lines
944 B
C

#ifndef _TRANSFER_H
#define _TRANSFER_H
/* $Id$ */
/*
* List of files to download.
*/
typedef struct _down_list {
struct _down_list *next;
char *local; /* Local filename */
char *remote; /* Remove filename */
long cps; /* CPS after sent */
long area; /* File area or 0 */
unsigned long size; /* File size */
unsigned kfs : 1; /* Kill File Sent */
unsigned sent : 1; /* File is Sent */
unsigned failed : 1; /* Transfer failed */
} down_list;
/*
* List of uploaded files.
*/
typedef struct _up_list {
struct _up_list *next;
char *remote; /* Remote filename */
char *local; /* Local filename */
long cps; /* CPS after received */
unsigned success : 1; /* If received Ok. */
} up_list;
int ForceProtocol(void);
void add_download(down_list **, char *, char *, long, unsigned long, int);
void tidy_download(down_list **);
int download(down_list *);
int upload(up_list *);
#endif