Thu Apr 28 2011 16:57:21

Asterisk developer's documentation


mansession_session Struct Reference

Collaboration diagram for mansession_session:

Data Structures

struct  mansession_datastores

Data Fields

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

Detailed Description

Definition at line 199 of file manager.c.


Field Documentation

time_t authstart

Definition at line 222 of file manager.c.

Referenced by do_message(), get_input(), and session_do().

char challenge[10]

Authentication challenge

Definition at line 212 of file manager.c.

Referenced by action_challenge(), and authenticate().

FILE* f

fdopen() on the underlying fd

Definition at line 203 of file manager.c.

Referenced by astman_append(), free_session(), get_input(), process_events(), send_string(), and session_do().

int fd

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

Definition at line 204 of file manager.c.

Referenced by action_waitevent(), generic_http_callback(), get_input(), handle_showmanconn(), send_string(), and session_do().

char inbuf[1025]

Buffer

Definition at line 216 of file manager.c.

Referenced by do_message(), and get_input().

int inlen

number of buffered bytes

Definition at line 218 of file manager.c.

Referenced by get_input().

int inuse

number of HTTP sessions using this entry

Definition at line 205 of file manager.c.

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

struct eventqent* last_ev

last event processed.

Definition at line 220 of file manager.c.

Referenced by action_waitevent(), free_session(), process_events(), and session_do().

struct { ... } list
uint32_t managerid

Unique manager identifier, 0 for AMI sessions

Definition at line 208 of file manager.c.

Referenced by action_login(), action_waitevent(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), find_session(), and generic_http_callback().

Whether an HTTP session should be destroyed

Definition at line 206 of file manager.c.

Referenced by action_waitevent(), find_session(), and generic_http_callback().

Definition at line 225 of file manager.c.

Pending events indicator in case when waiting_thread is NULL

Definition at line 223 of file manager.c.

Referenced by __manager_event(), and get_input().

int readperm

Authorization for reading

Definition at line 214 of file manager.c.

Referenced by action_waitevent(), astman_verify_session_readpermissions(), authenticate(), handle_showmanconn(), and process_events().

XXX what ?

Definition at line 219 of file manager.c.

Referenced by action_waitevent(), generic_http_callback(), process_events(), session_do(), and set_eventmask().

time_t sessionstart

Session start time

Definition at line 209 of file manager.c.

Referenced by authenticate(), and handle_showmanconn().

Session timeout if HTTP

Definition at line 210 of file manager.c.

Referenced by action_waitevent(), generic_http_callback(), and purge_sessions().

struct sockaddr_in sin

address we are connecting from

Definition at line 202 of file manager.c.

Referenced by action_login(), authenticate(), do_message(), generic_http_callback(), get_input(), handle_showmanconn(), purge_sessions(), and session_do().

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 207 of file manager.c.

Referenced by __manager_event(), action_waitevent(), generic_http_callback(), get_input(), and session_do().

Timeout for ast_carefulwrite()

Definition at line 221 of file manager.c.

Referenced by authenticate(), send_string(), and session_do().


The documentation for this struct was generated from the following file: