Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
serverbrowser.cpp File Reference
#include <algorithm>
#include "SDL_keycode.h"
#include "SDL_mutex.h"
#include "SDL_thread.h"
#include "SDL_timer.h"
#include <enet/enet.h>
#include "inexor/engine/renderbackground.hpp"
#include "inexor/io/input/InputRouter.hpp"
#include "inexor/shared/cube_formatting.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_vector.hpp"
#include "inexor/shared/tools.hpp"
#include "inexor/util/legacy_time.hpp"

Classes

struct  resolverthread
 
struct  resolverresult
 

Macros

#define RESOLVERTHREADS   2
 
#define RESOLVERLIMIT   3000
 

Functions

int resolverloop (void *data)
 
void resolverinit ()
 
void resolverstop (resolverthread &rt)
 
void resolverclear ()
 
void resolverquery (const char *name)
 
bool resolvercheck (const char **name, ENetAddress *address)
 
bool resolverwait (const char *name, ENetAddress *address)
 

Variables

vector< resolverthreadresolverthreads
 
vector< const char * > resolverqueries
 
vector< resolverresultresolverresults
 
SDL_mutex * resolvermutex
 
SDL_cond * querycond
 
SDL_cond * resultcond
 

Class Documentation

struct resolverthread
Class Members
const char * query
int starttime
SDL_Thread * thread
struct resolverresult
Class Members
ENetAddress address
const char * query

Macro Definition Documentation

#define RESOLVERLIMIT   3000

Referenced by resolvercheck(), and resolverwait().

#define RESOLVERTHREADS   2

Referenced by resolverinit().

Function Documentation

bool resolvercheck ( const char **  name,
ENetAddress *  address 
)
void resolverclear ( )
void resolverinit ( )
int resolverloop ( void data)
void resolverquery ( const char *  name)
void resolverstop ( resolverthread rt)
bool resolverwait ( const char *  name,
ENetAddress *  address 
)

Variable Documentation

SDL_cond* querycond
SDL_mutex* resolvermutex
vector<const char *> resolverqueries
vector<resolverresult> resolverresults
vector<resolverthread> resolverthreads
SDL_cond * resultcond