DaZeus  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
network.cpp File Reference
#include "network.h"
#include "server.h"
#include "utils.h"
#include <stdio.h>
#include <sys/select.h>
Include dependency graph for network.cpp:

Go to the source code of this file.

Classes

struct  dazeus::ServerSorter
 

Namespaces

namespace  dazeus
 Chooses one server or the other based on the priority and failure rate. Failure rate is recorded in the Network object that the ServerConfig object links to via the NetworkConfig, if there is such a NetworkConfig object. You must give two servers of the same Network.
 

Macros

#define MIN(a)   if(params.size() < a) { fprintf(stderr, "Too few parameters for event %s\n", event.c_str()); return; }
 

Macro Definition Documentation

#define MIN (   a)    if(params.size() < a) { fprintf(stderr, "Too few parameters for event %s\n", event.c_str()); return; }