Wed Aug 18 22:34:38 2010

Asterisk developer's documentation


mansession_session Struct Reference
[AMI functions]


Data Fields

ast_mutex_t __lock
int authenticated
char challenge [10]
mansession_session::mansession_datastores datastores
FILE * f
int fd
char inbuf [1025]
int inlen
int inuse
eventqentlast_ev
struct {
   mansession_session *   next
list
uint32_t managerid
pthread_t ms_t
int needdestroy
int pending_event
int readperm
int send_events
time_t sessionstart
time_t sessiontimeout
sockaddr_in sin
char username [80]
pthread_t waiting_thread
int writeperm
int writetimeout

Data Structures

struct  mansession_datastores

Detailed Description

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

Referenced by __manager_event(), astman_is_authed(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), find_session(), and free_session().

int authenticated

Authentication status

Definition at line 200 of file manager.c.

Referenced by astman_is_authed(), and purge_sessions().

char challenge[10]

Authentication challenge

Definition at line 199 of file manager.c.

struct mansession_session::mansession_datastores datastores

Data stores on the session

Referenced by free_session().

FILE* f

fdopen() on the underlying fd

Definition at line 190 of file manager.c.

Referenced by free_session().

int fd

descriptor used for output. Either the socket (AMI) or a temporary file (HTTP)

Definition at line 191 of file manager.c.

Referenced by handle_showmanconn().

char inbuf[1025]

Buffer

Definition at line 203 of file manager.c.

int inlen

number of buffered bytes

Definition at line 205 of file manager.c.

int inuse

number of HTTP sessions using this entry

Definition at line 192 of file manager.c.

Referenced by find_session(), handle_showmanconn(), and purge_sessions().

struct eventqent* last_ev

last event processed.

Definition at line 207 of file manager.c.

Referenced by free_session().

struct { ... } list

Referenced by check_manager_session_inuse(), and handle_showmanconn().

uint32_t managerid

Unique manager identifier, 0 for AMI sessions

Definition at line 195 of file manager.c.

Referenced by astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), and find_session().

pthread_t ms_t

Execution thread, basically useless

Definition at line 186 of file manager.c.

int needdestroy

Whether an HTTP session should be destroyed

Definition at line 193 of file manager.c.

Referenced by find_session().

struct mansession_session* next

Definition at line 211 of file manager.c.

int pending_event

Pending events indicator in case when waiting_thread is NULL

Definition at line 209 of file manager.c.

Referenced by __manager_event().

int readperm

Authorization for reading

Definition at line 201 of file manager.c.

Referenced by astman_verify_session_readpermissions(), and handle_showmanconn().

int send_events

XXX what ?

Definition at line 206 of file manager.c.

time_t sessionstart

Session start time

Definition at line 196 of file manager.c.

Referenced by handle_showmanconn().

time_t sessiontimeout

Session timeout if HTTP

Definition at line 197 of file manager.c.

Referenced by purge_sessions().

struct sockaddr_in sin

address we are connecting from

Definition at line 189 of file manager.c.

Referenced by handle_showmanconn(), and purge_sessions().

char username[80]

Logged in username

Definition at line 198 of file manager.c.

Referenced by check_manager_session_inuse(), handle_showmanconn(), manager_displayconnects(), and purge_sessions().

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 194 of file manager.c.

Referenced by __manager_event().

int writeperm

Authorization for writing

Definition at line 202 of file manager.c.

Referenced by astman_verify_session_writepermissions(), and handle_showmanconn().

int writetimeout

Timeout for ast_carefulwrite()

Definition at line 208 of file manager.c.


The documentation for this struct was generated from the following file:
Generated on Wed Aug 18 22:34:38 2010 for Asterisk - the Open Source PBX by  doxygen 1.4.7