38 int buffer_size, buffer_offset;
39 bool my_packet =
false;
81 Assert( (status == 0) || (status == 1) );
96 int buffer_size, buffer_offset;
97 bool my_packet =
false;
101 int i, num_type_kills = 0;
133 Assert( (num_type_kills >= 0) && (num_type_kills < USHRT_MAX) );
183 Assert( (status == 0) || (status == 1) || (status == 2) );
197 int buffer_size, buffer_offset;
198 bool my_packet =
false;
219 ubyte reply_type = 0;
222 ushort num_type_kills = 0, num_medals = 0;
248 if ( buffer_size > (
int)
sizeof(buffer) ) {
249 ml_printf(
"FS2NetD WARNING: Pilot update data is larger than receive buffer! Some data will be lost!");
270 if (reply_type != 0) {
271 return (
int)reply_type;
291 for (idx = 0; idx < (
int)num_type_kills; idx++) {
292 memset( ship_name, 0,
sizeof(ship_name) );
298 if (si_index == -1) {
307 for (idx = 0; (idx <
Num_medals) && (idx < num_medals); idx++) {
311 return (
int)reply_type;
319 int buffer_size, buffer_offset;
320 bool my_packet =
false;
360 if ( buffer_size > (
int)
sizeof(buffer) ) {
361 ml_printf(
"FS2NetD WARNING: Banned user list data is larger than receive buffer! Some data will be lost!");
381 for (idx = 0; idx < num_files; idx++) {
383 mask_list.push_back( ip_mask );
394 int buffer_size, buffer_offset;
395 bool my_packet =
false;
409 int i, num_files = 0;
434 if ( buffer_size > (
int)
sizeof(buffer) ) {
435 ml_printf(
"FS2NetD WARNING: Mission list data is larger than receive buffer! Some data will be lost!");
455 for (i = 0; i < num_files; i++) {
461 m_list.push_back( nrec );
472 int buffer_size, buffer_offset;
473 bool my_packet =
false;
491 ubyte login_status = 0;
519 if ( !login_status ) {
615 int all = 0xFFFFFFFF;
616 bool filtered =
false;
687 int buffer_size, buffer_offset;
688 bool my_packet =
false;
696 num_tables = (
ushort)Table_valid_status.size();
713 ubyte tbl_valid_status = 0;
759 if ( num_tables > (
int)Table_valid_status.size() ) {
760 ml_printf(
"FS2NetD WARNING: Table list contains %i tables, but we only requested %i! Invalid data!", num_tables, Table_valid_status.size());
766 Assert( (tbl_valid_status == 0) || (tbl_valid_status == 1) );
768 tvs->valid = tbl_valid_status;
821 Assert( MAX_PLAYERS <= 255 );
826 for (idx = 0; idx < ids_count; idx++) {
void FS2NetD_Pong(int tstamp)
#define PCKT_MISSION_CHECK
int ship_info_lookup(const char *token)
char Multi_fs_tracker_channel[MAX_PATH]
int FS2NetD_CheckSingleMission(const char *m_name, uint crc32, bool do_send)
#define PXO_GET_STRING(s)
int kills[MAX_SHIP_CLASSES]
int FS2NetD_GetBanList(SCP_vector< SCP_string > &mask_list, bool do_send)
int FS2NetD_SendData(char *buffer, int blen)
#define PXO_ADD_STRING(s)
#define MULTI_STANDALONE(np)
#define PCKT_PILOT_UPDATE
int multi_get_connection_speed()
int FS2NetD_CheckValidID()
#define PCKT_VALID_SID_RQST
unsigned int s_shots_fired
void FS2NetD_GameCountUpdate(const char *chan_name)
void FS2NetD_SendServerDisconnect()
int FS2NetD_GetPlayerData(const char *player_name, player *pl, bool can_create, bool do_send)
#define PCKT_SLIST_REQUEST_FILTER
#define PCKT_CHAT_CHAN_COUNT_RQST
#define PCKT_PILOT_UREPLY
typedef int(SCP_EXT_CALLCONV *SCPDLL_PFVERSION)(SCPDLL_Version *)
unsigned int missions_flown
int FS2NetD_GetData(char *buffer, int blen)
void ml_printf(const char *format,...)
#define PCKT_SERVER_DISCONNECT
char name[MAX_GAMENAME_LEN+1]
unsigned int p_shots_fired
#define PCKT_MISSIONS_REPLY
void FS2NetD_CheckDuplicateLogin()
SCP_vector< crc_valid_status > Table_valid_status
char mission_name[NAME_LENGTH+1]
SCP_vector< int > medal_counts
void FS2NetD_SendServerStart()
char campaign_name[NAME_LENGTH+1]
#define PCKT_MCHECK_REPLY
char title[NAME_LENGTH+1]
GLuint const GLchar * name
#define MULTI_PERM_OBSERVER(np)
#define PCKT_BANLIST_RPLY
#define MULTI_CONNECTED(np)
fix timer_get_fixed_seconds()
#define PCKT_SERVER_START
char Multi_fs_tracker_filter[MAX_PATH]
#define PCKT_SERVER_UPDATE
unsigned int p_bonehead_hits
SCP_vector< ship_info > Ship_info
void FS2NetD_RequestServerList()
#define PCKT_BANLIST_RQST
int FS2NetD_GetMissionsList(SCP_vector< file_record > &m_list, bool do_send)
void FS2NetD_SendServerUpdate()
int FS2NetD_SendPlayerData(const char *player_name, player *pl, bool do_send)
#define PXO_ADD_USHORT(d)
#define PCKT_SLIST_REQUEST
#define PXO_GET_USHORT(d)
#define PCKT_MISSIONS_RQST
#define PCKT_TABLES_REPLY
#define PCKT_DUP_LOGIN_RQST
int FS2NetD_ValidateTableList(bool do_send)
net_player Net_players[MAX_PLAYERS]
int timer_get_milliseconds()
char Multi_tracker_login[MULTI_TRACKER_STRING_LEN+1]
multi_global_options Multi_options_g
unsigned int s_bonehead_hits
int FS2NetD_Login(const char *username, const char *password, bool do_send)