12 #ifndef _FREESPACE_FILE_TRANSFER_HEADER
13 #define _FREESPACE_FILE_TRANSFER_HEADER
23 #define MULTI_XFER_NONE -1 // nothing is happening - this is an invalid handle
24 #define MULTI_XFER_SUCCESS 0 // the xfer has successfully transferred
25 #define MULTI_XFER_FAIL 1 // the xfer has failed for one reason or another
26 #define MULTI_XFER_UNKNOWN 2 // the xfer has finished but its unknown if it was successful - wait a while longer
27 #define MULTI_XFER_TIMEDOUT 3 // the xfer has timed-out during some stage of the process
28 #define MULTI_XFER_IN_PROGRESS 4 // the xfer is in progress
29 #define MULTI_XFER_QUEUED 5 // queued up - hasn't started yet
31 #define MULTI_XFER_FLAG_AUTODESTROY (1<<15) // automatically clear and free an xfer handle that is done
32 #define MULTI_XFER_FLAG_REJECT (1<<16) // set by the receive callback function if we want to disallow xfer of this file
38 #define MULTI_XFER_FLAG_QUEUE (1<<17)
41 #define MULTI_XFER_MAX_SIZE 500
uint PSNET_SOCKET_RELIABLE
void multi_xfer_handle_force_dir(int handle, int cf_type)
int multi_xfer_get_flags(int handle)
int multi_xfer_send_file(PSNET_SOCKET_RELIABLE who, char *filename, int cfile_flags, int flags=0)
void multi_xfer_release_handle(int handle)
float multi_xfer_pct_complete(int handle)
void multi_xfer_force_dir(int cf_type)
uint multi_xfer_get_sock(int handle)
int multi_xfer_get_status(int handle)
int multi_xfer_lookup(char *filename)
void multi_xfer_abort(int handle)
GLenum GLsizei GLenum GLenum const GLvoid * data
int multi_xfer_get_force_dir(int handle)
int multi_xfer_process_packet(unsigned char *data, PSNET_SOCKET_RELIABLE who)
char * multi_xfer_get_filename(int handle)
void multi_xfer_init(void(*multi_xfer_recv_callback)(int handle))
void multi_xfer_xor_flags(int handle, int flags)