Wed Oct 28 11:54:16 2009

Asterisk developer's documentation


iax2_thread Struct Reference

Collaboration diagram for iax2_thread:

Collaboration graph
[legend]

Data Fields

int actions
unsigned char * buf
ssize_t buf_len
size_t buf_size
time_t checktime
ast_cond_t cond
char curfunc [80]
struct {
   unsigned short   callno
   unsigned char   csub
   struct sockaddr_in   sin
   unsigned char   type
ffinfo
struct {
   struct iax2_pkt_buf *   first
   struct iax2_pkt_buf *   last
full_frames
ast_cond_t init_cond
ast_mutex_t init_lock
int iofd
struct sockaddr_in iosin
enum iax2_thread_iostate iostate
struct {
   struct iax2_thread *   next
list
ast_mutex_t lock
unsigned char readbuf [4096]
const void * scheddata
void(* schedfunc )(const void *)
pthread_t threadid
int threadnum
enum iax2_thread_type type

Detailed Description

Definition at line 861 of file chan_iax2.c.


Field Documentation

int actions

Definition at line 872 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

unsigned char* buf

ssize_t buf_len

size_t buf_size

Definition at line 879 of file chan_iax2.c.

Referenced by handle_deferred_full_frames(), and socket_read().

unsigned short callno

Definition at line 891 of file chan_iax2.c.

Referenced by __send_lagrq(), __send_ping(), and socket_read().

time_t checktime

Definition at line 881 of file chan_iax2.c.

Referenced by handle_cli_iax2_show_threads(), and iax2_process_thread().

unsigned char csub

Definition at line 894 of file chan_iax2.c.

Referenced by socket_read().

char curfunc[80]

struct { ... } ffinfo

if this thread is processing a full frame, some information about that frame will be stored here, so we can avoid dispatching any more full frames for that callno to other threads

Referenced by find_idle_thread(), and socket_read().

struct iax2_pkt_buf* first [read]

Definition at line 899 of file chan_iax2.c.

struct { ... } full_frames

Queued up full frames for processing. If more full frames arrive for a call which this thread is already processing a full frame for, they are queued up here.

Referenced by defer_full_frame(), and handle_deferred_full_frames().

Definition at line 885 of file chan_iax2.c.

Referenced by find_idle_thread(), iax2_process_thread(), and iax2_process_thread_cleanup().

Definition at line 884 of file chan_iax2.c.

Referenced by find_idle_thread(), iax2_process_thread(), and iax2_process_thread_cleanup().

int iofd

Definition at line 880 of file chan_iax2.c.

Referenced by socket_process(), and socket_read().

struct sockaddr_in iosin [read]

Definition at line 875 of file chan_iax2.c.

Referenced by socket_process(), and socket_read().

struct iax2_pkt_buf* last [read]

Definition at line 899 of file chan_iax2.c.

struct { ... } list

struct iax2_thread* next [read]

Definition at line 862 of file chan_iax2.c.

unsigned char readbuf[4096]

Definition at line 876 of file chan_iax2.c.

Referenced by socket_read().

const void* scheddata

Definition at line 867 of file chan_iax2.c.

Referenced by __schedule_action(), and iax2_process_thread().

void(* schedfunc)(const void *)

struct sockaddr_in sin [read]

Definition at line 892 of file chan_iax2.c.

Referenced by socket_read().

pthread_t threadid

Definition at line 873 of file chan_iax2.c.

Referenced by __unload_module(), find_idle_thread(), and start_network_thread().

int threadnum

unsigned char type

Definition at line 893 of file chan_iax2.c.


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

Generated on Wed Oct 28 11:54:17 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6