FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "globalincs/pstypes.h"
Go to the source code of this file.
Macros | |
#define | MULTI_XFER_NONE -1 |
#define | MULTI_XFER_SUCCESS 0 |
#define | MULTI_XFER_FAIL 1 |
#define | MULTI_XFER_UNKNOWN 2 |
#define | MULTI_XFER_TIMEDOUT 3 |
#define | MULTI_XFER_IN_PROGRESS 4 |
#define | MULTI_XFER_QUEUED 5 |
#define | MULTI_XFER_FLAG_AUTODESTROY (1<<15) |
#define | MULTI_XFER_FLAG_REJECT (1<<16) |
#define | MULTI_XFER_FLAG_QUEUE (1<<17) |
#define | MULTI_XFER_MAX_SIZE 500 |
Typedefs | |
typedef uint | PSNET_SOCKET_RELIABLE |
Functions | |
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) |
#define MULTI_XFER_FAIL 1 |
Definition at line 25 of file multi_xfer.h.
#define MULTI_XFER_FLAG_AUTODESTROY (1<<15) |
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.
#define MULTI_XFER_IN_PROGRESS 4 |
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.
#define MULTI_XFER_QUEUED 5 |
Definition at line 29 of file multi_xfer.h.
#define MULTI_XFER_SUCCESS 0 |
Definition at line 24 of file multi_xfer.h.
#define MULTI_XFER_TIMEDOUT 3 |
Definition at line 27 of file multi_xfer.h.
#define MULTI_XFER_UNKNOWN 2 |
Definition at line 26 of file multi_xfer.h.
typedef uint PSNET_SOCKET_RELIABLE |
Definition at line 20 of file multi_xfer.h.
Definition at line 308 of file multi_xfer.cpp.
void multi_xfer_do | ( | ) |
Definition at line 170 of file multi_xfer.cpp.
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.
Definition at line 426 of file multi_xfer.cpp.
Definition at line 488 of file multi_xfer.cpp.
Definition at line 477 of file multi_xfer.cpp.
Definition at line 276 of file multi_xfer.cpp.
Definition at line 401 of file multi_xfer.cpp.
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.
Definition at line 460 of file multi_xfer.cpp.
int multi_xfer_process_packet | ( | unsigned char * | data, |
PSNET_SOCKET_RELIABLE | who | ||
) |
Definition at line 652 of file multi_xfer.cpp.
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.
Definition at line 414 of file multi_xfer.cpp.