30 #define MAX_MULTI_DATA 40
96 if(Multi_data[idx].player_id ==
Net_players[player_index].player_id){
130 nprintf((
"Network",
"Failed to send data file! Trying again later...\n"));
145 int player_index = -1;
156 nprintf((
"Network",
"Could not get file xfer filename! wacky...!\n"));
165 nprintf((
"Network",
"Not accepting xfer request because its not a valid data file!\n"));
175 nprintf((
"Network",
"Not accepting file xfer because a duplicate exists!\n"));
189 if(player_index == -1){
190 nprintf((
"Network",
"Could not find player for incoming player data stream!\n"));
214 nprintf((
"Network",
"Client not accepting files because we don't want 'em!\n"));
228 nprintf((
"Network",
"Client receiving xfer handle %d\n",handle));
269 if(with_ext != NULL){
316 if(with_ext != NULL){
345 if(filename == NULL){
350 len = strlen(filename);
351 for(idx=0;idx<
len;idx++){
352 filename[
idx] = (char)tolower(filename[idx]);
356 if(strstr(filename,
NOX(
".pcx"))){
371 if(!Multi_data[idx].used){
388 nprintf((
"Network",
"Could not get free np_data slot! yikes!\n"));
394 nprintf((
"Network",
"Server not accepting pilot pic because we don't want 'em!\n"));
399 memset(&Multi_data[slot], 0,
sizeof(
np_data));
400 strcpy_s(Multi_data[slot].filename, filename);
401 Multi_data[slot].
used = 1;
403 Multi_data[slot].
status[player_index] = 2;
420 if(
Net_players[idx].m_player->insignia_texture != -1){
#define PLAYER_SQUAD_PIC_H
void bm_unlock(int handle)
Unlocks a bitmap.
#define MY_NET_PLAYER_NUM
char image_filename[MAX_FILENAME_LEN+1]
GLfloat GLfloat GLfloat GLfloat h
char * multi_xfer_get_filename(int handle)
uint PSNET_SOCKET_RELIABLE
#define MULTI_XFER_FLAG_QUEUE
int bm_get_info(int handle, int *w, int *h, ubyte *flags, int *nframes, int *fps)
Gets info on the bitmap indexed by handle.
int multi_xfer_lookup(char *filename)
int bm_load_duplicate(const char *filename)
Reloads a bitmap as a duplicate.
#define PLAYER_SQUAD_PIC_W
int bm_release(int handle, int clear_render_targets)
Frees both a bitmap's data and it's associated slot.
#define CF_TYPE_MULTI_CACHE
#define MULTI_XFER_FLAG_AUTODESTROY
void multi_data_send_my_junk()
void multi_data_handle_incoming(int handle)
#define NETINFO_FLAG_AM_MASTER
multi_server_options options
PSNET_SOCKET_RELIABLE reliable_socket
void multi_xfer_handle_force_dir(int handle, int cf_type)
void multi_data_maybe_reload()
void multi_xfer_xor_flags(int handle, int flags)
#define MULTI_XFER_FLAG_REJECT
int multi_xfer_send_file(PSNET_SOCKET_RELIABLE who, char *filename, int cfile_flags, int flags)
void multi_data_handle_drop(int player_index)
bitmap * bm_lock(int handle, ubyte bpp, ubyte flags, bool nodebug)
Locks down the bitmap indexed by bitmapnum.
void multi_data_handle_join(int player_index)
char filename[MAX_FILENAME_LEN+1]
#define GM_STANDALONE_SERVER
char * cf_add_ext(const char *filename, const char *ext)
int bm_load(const char *real_filename)
Loads a bitmap so we can draw with it later.
np_data Multi_data[MAX_MULTI_DATA]
int multi_data_get_free()
ubyte status[MAX_PLAYERS]
#define MULTI_CONNECTED(np)
int multi_data_add_new(char *filename, int player_index)
uint multi_xfer_get_sock(int handle)
#define MSO_FLAG_ACCEPT_PIX
#define MLO_FLAG_ACCEPT_PIX
int find_player_socket(PSNET_SOCKET_RELIABLE sock)
#define PLAYER_PILOT_PIC_W
char m_squad_filename[MAX_FILENAME_LEN+1]
int multi_data_is_data(char *filename)
#define BMP_TEX_XPARENT
transparent texture
net_player Net_players[MAX_PLAYERS]
#define PLAYER_PILOT_PIC_H
int cf_exists(const char *filename, int dir_type)
multi_local_options options