cluster.c File Reference

#include <string.h>
#include "cluster.h"
#include "seas.h"
#include "../../dprint.h"
#include "../../mem/mem.h"

Include dependency graph for cluster.c:

Go to the source code of this file.

Defines

#define eat_spaces(_p)

Functions

int parse_cluster_cfg (void)

Variables

char * cluster_cfg


Define Documentation

#define eat_spaces ( _p   ) 

Value:

while( *(_p)==' ' || *(_p)=='\t' ){\
   (_p)++;}

Definition at line 32 of file cluster.c.

Referenced by parse_cluster_cfg(), and parse_config_lines().


Function Documentation

int parse_cluster_cfg ( void   ) 

Parses the PING configuration string. Its format is "ping_period:pings_lost:ping_timeout" ping_period : time between pings pings_lost: number of lost pings before failure ping_timeout: time to consider a ping failed

returns 0 if no clusters present -1 if config is malformed (unable to parse); 1 if config is successfully set

Definition at line 49 of file cluster.c.

References as_entry::as, as_list, cluster::as_names, AS_TYPE, cluster_cfg, CLUSTER_TYPE, as_entry::cs, eat_spaces, _str::len, LM_DBG, LM_ERR, MAX_AS_PER_CLUSTER, as_entry::name, as_entry::next, cluster::num, _str::s, cluster::servers, shm_free, shm_malloc(), as_entry::type, and as_entry::u.

Referenced by seas_init().


Variable Documentation

char* cluster_cfg

Definition at line 30 of file cluster.c.

Referenced by parse_cluster_cfg().


Generated on Mon May 21 18:00:37 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6