#define FILECREDITS 1
#define BYTECREDITS 2
typedef struct
{
char username[MAXNAMELEN+1];
long long int downloadcredits;
int filecredits;
short int flags;
short int byteinmult;
short int byteoutmult;
short int fileinmult;
short int fileoutmult;
} RATIOFILEDATA;
typedef struct
{
int ratiofilefd;
RATIOFILEDATA *rdat;
int filepos;
} RATIOHANDLE;