Open source remastering of the Freespace 2 engine
multi_xfer.h File Reference

Go to the source code of this file.


#define MULTI_XFER_NONE   -1
#define MULTI_XFER_FAIL   1
#define MULTI_XFER_FLAG_REJECT   (1<<16)
#define MULTI_XFER_FLAG_QUEUE   (1<<17)
#define MULTI_XFER_MAX_SIZE   500




void multi_xfer_init (void(*multi_xfer_recv_callback)(int handle))
void multi_xfer_do ()
void multi_xfer_reset ()
int multi_xfer_send_file (PSNET_SOCKET_RELIABLE who, char *filename, int cfile_flags, int flags=0)
int multi_xfer_get_status (int handle)
void multi_xfer_abort (int handle)
void multi_xfer_release_handle (int handle)
char * multi_xfer_get_filename (int handle)
void multi_xfer_lock ()
void multi_xfer_unlock ()
void multi_xfer_force_dir (int cf_type)
void multi_xfer_handle_force_dir (int handle, int cf_type)
void multi_xfer_xor_flags (int handle, int flags)
int multi_xfer_get_flags (int handle)
int multi_xfer_lookup (char *filename)
float multi_xfer_pct_complete (int handle)
uint multi_xfer_get_sock (int handle)
int multi_xfer_get_force_dir (int handle)
int multi_xfer_process_packet (unsigned char *data, PSNET_SOCKET_RELIABLE who)

Macro Definition Documentation

#define MULTI_XFER_FAIL   1

Definition at line 25 of file multi_xfer.h.


Definition at line 31 of file multi_xfer.h.

#define MULTI_XFER_FLAG_QUEUE   (1<<17)

Definition at line 38 of file multi_xfer.h.

#define MULTI_XFER_FLAG_REJECT   (1<<16)

Definition at line 32 of file multi_xfer.h.


Definition at line 28 of file multi_xfer.h.

#define MULTI_XFER_MAX_SIZE   500

Definition at line 41 of file multi_xfer.h.

#define MULTI_XFER_NONE   -1

Definition at line 23 of file multi_xfer.h.


Definition at line 29 of file multi_xfer.h.


Definition at line 24 of file multi_xfer.h.


Definition at line 27 of file multi_xfer.h.


Definition at line 26 of file multi_xfer.h.

Typedef Documentation

Definition at line 20 of file multi_xfer.h.

Function Documentation

void multi_xfer_abort ( int  handle)

Definition at line 308 of file multi_xfer.cpp.

void multi_xfer_do ( )

Definition at line 170 of file multi_xfer.cpp.

void multi_xfer_force_dir ( int  cf_type)

Definition at line 394 of file multi_xfer.cpp.

char* multi_xfer_get_filename ( int  handle)

Definition at line 370 of file multi_xfer.cpp.

int multi_xfer_get_flags ( int  handle)

Definition at line 426 of file multi_xfer.cpp.

int multi_xfer_get_force_dir ( int  handle)

Definition at line 488 of file multi_xfer.cpp.

uint multi_xfer_get_sock ( int  handle)

Definition at line 477 of file multi_xfer.cpp.

int multi_xfer_get_status ( int  handle)

Definition at line 276 of file multi_xfer.cpp.

void multi_xfer_handle_force_dir ( int  handle,
int  cf_type 

Definition at line 401 of file multi_xfer.cpp.

void multi_xfer_init ( void(*)(int handle)  multi_xfer_recv_callback)

Definition at line 154 of file multi_xfer.cpp.

void multi_xfer_lock ( )

Definition at line 382 of file multi_xfer.cpp.

int multi_xfer_lookup ( char *  filename)

Definition at line 438 of file multi_xfer.cpp.

float multi_xfer_pct_complete ( int  handle)

Definition at line 460 of file multi_xfer.cpp.

int multi_xfer_process_packet ( unsigned char *  data,

Definition at line 652 of file multi_xfer.cpp.

void multi_xfer_release_handle ( int  handle)

Definition at line 339 of file multi_xfer.cpp.

void multi_xfer_reset ( )

Definition at line 185 of file multi_xfer.cpp.

int multi_xfer_send_file ( PSNET_SOCKET_RELIABLE  who,
char *  filename,
int  cfile_flags,
int  flags = 0 

Definition at line 201 of file multi_xfer.cpp.

void multi_xfer_unlock ( )

Definition at line 388 of file multi_xfer.cpp.

void multi_xfer_xor_flags ( int  handle,
int  flags 

Definition at line 414 of file multi_xfer.cpp.