Tue Apr 28 22:50:54 2009

Asterisk developer's documentation


mansession Struct Reference
[AMI functions]


Data Fields

ast_mutex_t __lock
int authenticated
char challenge [10]
int displaysystemname
eventqenteventq
int fd
char inbuf [1024]
int inlen
int inuse
struct {
   mansession *   next
list
uint32_t managerid
int needdestroy
ast_dynamic_stroutputstr
int pending_event
int readperm
int send_events
time_t sessiontimeout
sockaddr_in sin
pthread_t t
char username [80]
pthread_t waiting_thread
int writeperm
int writetimeout

Detailed Description

Definition at line 147 of file manager.c.


Field Documentation

ast_mutex_t __lock

Thread lock -- don't use in action callbacks, it's already taken care of

Definition at line 151 of file manager.c.

int authenticated

Authentication status

Definition at line 173 of file manager.c.

char challenge[10]

Authentication challenge

Definition at line 171 of file manager.c.

int displaysystemname

Add system name to manager responses and events

Definition at line 182 of file manager.c.

struct eventqent* eventq

Definition at line 184 of file manager.c.

int fd

TCP socket

Definition at line 155 of file manager.c.

char inbuf[1024]

Buffer

Definition at line 179 of file manager.c.

int inlen

Definition at line 180 of file manager.c.

int inuse

Whether an HTTP manager is in use

Definition at line 157 of file manager.c.

struct { ... } list

Referenced by ast_get_manager_by_name_locked(), destroy_session(), handle_showmanagers(), and handle_showmanconn().

uint32_t managerid

Unique manager identifer

Definition at line 163 of file manager.c.

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 159 of file manager.c.

struct mansession* next

Definition at line 188 of file manager.c.

struct ast_dynamic_str* outputstr

Output from manager interface

Definition at line 167 of file manager.c.

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 187 of file manager.c.

int readperm

Authorization for reading

Definition at line 175 of file manager.c.

int send_events

Definition at line 181 of file manager.c.

time_t sessiontimeout

Session timeout if HTTP

Definition at line 165 of file manager.c.

struct sockaddr_in sin

socket address

Definition at line 153 of file manager.c.

pthread_t t

Execution thread

Definition at line 149 of file manager.c.

char username[80]

Logged in username

Definition at line 169 of file manager.c.

pthread_t waiting_thread

Whether an HTTP session has someone waiting on events

Definition at line 161 of file manager.c.

int writeperm

Authorization for writing

Definition at line 177 of file manager.c.

int writetimeout

Definition at line 186 of file manager.c.


The documentation for this struct was generated from the following file:
Generated on Tue Apr 28 22:50:54 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7