Mon Mar 19 11:30:58 2012

Asterisk developer's documentation


iax2_thread Struct Reference


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
   sockaddr_in   sin
   unsigned char   type
ffinfo
struct {
   iax2_pkt_buf *   first
   iax2_pkt_buf *   last
full_frames
ast_cond_t init_cond
ast_mutex_t init_lock
int iofd
sockaddr_in iosin
enum iax2_thread_iostate iostate
struct {
   iax2_thread *   next
list
ast_mutex_t lock
unsigned char readbuf [4096]
const void * scheddata
void(* schedfunc )(const void *)
unsigned char stop
pthread_t threadid
int threadnum
enum iax2_thread_type type

Detailed Description

Definition at line 998 of file chan_iax2.c.


Field Documentation

int actions

Definition at line 1009 of file chan_iax2.c.

unsigned char* buf

Definition at line 1014 of file chan_iax2.c.

Referenced by defer_full_frame(), and encmethods_to_str().

ssize_t buf_len

Definition at line 1015 of file chan_iax2.c.

Referenced by defer_full_frame().

size_t buf_size

Definition at line 1016 of file chan_iax2.c.

unsigned short callno

Definition at line 1028 of file chan_iax2.c.

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

time_t checktime

Definition at line 1018 of file chan_iax2.c.

ast_cond_t cond

Definition at line 1020 of file chan_iax2.c.

unsigned char csub

Definition at line 1031 of file chan_iax2.c.

char curfunc[80]

Definition at line 1007 of file chan_iax2.c.

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 socket_read().

struct iax2_pkt_buf* first

Definition at line 1036 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().

ast_cond_t init_cond

Definition at line 1022 of file chan_iax2.c.

ast_mutex_t init_lock

Definition at line 1021 of file chan_iax2.c.

int iofd

Definition at line 1017 of file chan_iax2.c.

struct sockaddr_in iosin

Definition at line 1012 of file chan_iax2.c.

enum iax2_thread_iostate iostate

Definition at line 1001 of file chan_iax2.c.

struct iax2_pkt_buf* last

Definition at line 1036 of file chan_iax2.c.

struct { ... } list

Referenced by cleanup_thread_list(), handle_cli_iax2_show_threads(), socket_read(), and start_network_thread().

ast_mutex_t lock

Definition at line 1019 of file chan_iax2.c.

Referenced by defer_full_frame().

struct iax2_thread* next

Definition at line 999 of file chan_iax2.c.

unsigned char readbuf[4096]

Definition at line 1013 of file chan_iax2.c.

const void* scheddata

Definition at line 1004 of file chan_iax2.c.

void(* schedfunc)(const void *)

struct sockaddr_in sin

Definition at line 1029 of file chan_iax2.c.

Referenced by socket_read().

unsigned char stop

Definition at line 1037 of file chan_iax2.c.

pthread_t threadid

Definition at line 1010 of file chan_iax2.c.

int threadnum

Definition at line 1011 of file chan_iax2.c.

unsigned char type

Definition at line 1030 of file chan_iax2.c.

enum iax2_thread_type type

Definition at line 1000 of file chan_iax2.c.


The documentation for this struct was generated from the following file:
Generated on Mon Mar 19 11:30:58 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7