Wed Oct 14 15:02:28 2009

Asterisk developer's documentation


mansession_session 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_session *   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 180 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 184 of file manager.c.

int authenticated

Authentication status

Definition at line 206 of file manager.c.

Referenced by session_do().

char challenge[10]

Authentication challenge

Definition at line 204 of file manager.c.

int displaysystemname

Add system name to manager responses and events

Definition at line 215 of file manager.c.

struct eventqent* eventq

Definition at line 217 of file manager.c.

int fd

TCP socket

Definition at line 188 of file manager.c.

Referenced by session_do().

char inbuf[1024]

Buffer

Definition at line 212 of file manager.c.

int inlen

Definition at line 213 of file manager.c.

int inuse

Whether an HTTP manager is in use

Definition at line 190 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 196 of file manager.c.

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 192 of file manager.c.

struct mansession_session* next

Definition at line 221 of file manager.c.

struct ast_dynamic_str* outputstr

Output from manager interface

Definition at line 200 of file manager.c.

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 220 of file manager.c.

int readperm

Authorization for reading

Definition at line 208 of file manager.c.

int send_events

Definition at line 214 of file manager.c.

time_t sessiontimeout

Session timeout if HTTP

Definition at line 198 of file manager.c.

struct sockaddr_in sin

socket address

Definition at line 186 of file manager.c.

Referenced by session_do().

pthread_t t

Execution thread

Definition at line 182 of file manager.c.

char username[80]

Logged in username

Definition at line 202 of file manager.c.

Referenced by session_do().

pthread_t waiting_thread

Whether an HTTP session has someone waiting on events

Definition at line 194 of file manager.c.

int writeperm

Authorization for writing

Definition at line 210 of file manager.c.

int writetimeout

Definition at line 219 of file manager.c.


The documentation for this struct was generated from the following file:
Generated on Wed Oct 14 15:02:28 2009 for Asterisk - the Open Source PBX by  doxygen 1.4.7