Sat Aug 6 00:40:09 2011

Asterisk developer's documentation


mansession_session Struct Reference
[AMI functions]


Data Fields

ast_mutex_t __lock
int authenticated
time_t authstart
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
char username [80]
pthread_t waiting_thread
int writeperm
int writetimeout

Detailed Description

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

int authenticated

Authentication status

Definition at line 219 of file manager.c.

Referenced by session_do().

time_t authstart

Definition at line 233 of file manager.c.

char challenge[10]

Authentication challenge

Definition at line 217 of file manager.c.

int displaysystemname

Add system name to manager responses and events

Definition at line 228 of file manager.c.

struct eventqent* eventq

Definition at line 230 of file manager.c.

int fd

TCP socket

Definition at line 201 of file manager.c.

Referenced by session_do().

char inbuf[1024]

Buffer

Definition at line 225 of file manager.c.

int inlen

Definition at line 226 of file manager.c.

int inuse

Whether an HTTP manager is in use

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

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 205 of file manager.c.

struct mansession_session* next

Definition at line 235 of file manager.c.

Referenced by unuse_eventqent().

struct ast_dynamic_str* outputstr

Output from manager interface

Definition at line 213 of file manager.c.

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 234 of file manager.c.

int readperm

Authorization for reading

Definition at line 221 of file manager.c.

int send_events

Definition at line 227 of file manager.c.

time_t sessiontimeout

Session timeout if HTTP

Definition at line 211 of file manager.c.

struct sockaddr_in sin

socket address

Definition at line 199 of file manager.c.

Referenced by session_do().

char username[80]

Logged in username

Definition at line 215 of file manager.c.

Referenced by session_do().

pthread_t waiting_thread

Whether an HTTP session has someone waiting on events

Definition at line 207 of file manager.c.

int writeperm

Authorization for writing

Definition at line 223 of file manager.c.

int writetimeout

Definition at line 232 of file manager.c.


The documentation for this struct was generated from the following file:
Generated on Sat Aug 6 00:40:09 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7