as_entry Struct Reference

#include <seas.h>

Collaboration diagram for as_entry:

Collaboration graph
[legend]

Data Fields

int connected
str name
struct as_entrynext
int type
union {
   struct app_server   as
   struct cluster   cs
u

Detailed Description

SER processes will go through the as_table, doing if(valid && memcmp(name,his_name,name_len)==0), when one matches, they will put the as pointer inside the event that should process that event. If eventually the as becomes unavailable, the dispatcher will set valid=false, which should be atomic operation. This way, we prevent having to put a mutex on the array, which would make it slower , as only one process could be accessing it at a time.

Definition at line 133 of file seas.h.


Field Documentation

struct app_server as [read]

int connected

struct cluster cs [read]

Definition at line 139 of file seas.h.

Referenced by add_new_as(), and parse_cluster_cfg().

struct as_entry* next [read]

int type

union { ... } u


The documentation for this struct was generated from the following file:

Generated on Thu May 24 14:00:46 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6