event_dispatcher.h File Reference

#include "../../ip_addr.h"

Include dependency graph for event_dispatcher.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unc_as

Functions

int dispatcher_main_loop (void)
int process_bind_action (as_p as, char *payload, int len)
int process_unbind_action (as_p as, char *payload, int len)
int spawn_action_dispatcher (struct as_entry *as)

Variables

struct unc_as unc_as_t []


Function Documentation

int dispatcher_main_loop ( void   ) 

int process_bind_action ( as_p  as,
char *  payload,
int  len 
)

processes a BIND event type from the AS. Bind events follow this form: 4:flags 1:processor_id 1:Address Family 1:address length in bytes (16 for ipv6, 4 for ipv4) in NETWORK BYTE ORDER (fortunately, ip_addr struct stores it in NBO) [16|4]:the IP address 1:protocol used (UDP,TCP or TLS); 2:NBO port

Definition at line 804 of file event_dispatcher.c.

References ip_addr::addr, socket_info::address, ip_addr::af, app_server::binds, app_server::bound_processor, ip_addr::len, LM_DBG, LM_ERR, MAX_BINDS, net2hostL, socket_info::next, app_server::num_binds, port, socket_info::port_no, print_ip_buf(), PROTO_TCP, PROTO_TLS, PROTO_UDP, ip_addr::u, and udp_listen.

Referenced by process_event_reply().

int process_unbind_action ( as_p  as,
char *  payload,
int  len 
)

processes a UNBIND event type from the AS. Bind events follow this form: 1:processor_id

Definition at line 878 of file event_dispatcher.c.

References app_server::bound_processor, LM_DBG, LM_ERR, MAX_BINDS, net2hostL, and app_server::num_binds.

Referenced by process_event_reply().

int spawn_action_dispatcher ( struct as_entry as  ) 


Variable Documentation

struct unc_as unc_as_t[]

Definition at line 63 of file event_dispatcher.c.

Referenced by add_new_as(), handle_unc_as_data(), new_as_connect(), and seas_init().


Generated on Wed May 23 06:01:02 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6