In file filexfer.h:

int xfer_add

(char mode, char* file, char* description,
int32 refund, int32 credspermin)

Add a file to the transfer queue.

Documentation

Add a file to the transfer queue.

This function adds a file for transfer. A number of arguments are required:

Parameters:
mode - one of the FXM_x file transfer modes.
file - the full pathname to a file. If this file is about to be uploaded (user to BBS), this is the recommended (but NOT certain) name of the file.
- description a short (50 bytes including terminating null) description of the file.
- refund how many credits we will refund the user for canceling this transfer.
- credspermin credit consumption rate during the file transfer. This quantity is times 100. To specify consumption of 2.5 credits per minute, use 250. Specify 0 for no time-based credit charges, or -1 for the current per-minute charge, whatever that is.
Returns:
This function returns 0 if the file is being downloaded and fstat() could not access file, or (regardless of file direction) if the file transfer queue for this user could not be appended to.
See Also:
xfer_setaudit(), xfer_setcmd(), xfer_addwild()

Alphabetic index



This page was generated with the help of DOC++.