
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 eventqent * | last_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 |
Thread lock -- don't use in action callbacks, it's already taken care of
Definition at line 200 of file manager.c.
Referenced by __manager_event(), action_challenge(), action_waitevent(), astman_is_authed(), astman_verify_session_readpermissions(), astman_verify_session_writepermissions(), find_session(), free_session(), generic_http_callback(), get_input(), process_events(), process_message(), session_do(), and set_eventmask().
| int authenticated |
Authentication status
Definition at line 213 of file manager.c.
Referenced by action_login(), astman_is_authed(), do_message(), generic_http_callback(), get_input(), process_events(), process_message(), purge_sessions(), and session_do().
| 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().
Data stores on the session
Referenced by astman_datastore_add(), astman_datastore_find(), astman_datastore_remove(), free_session(), and session_do().
| 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] |
| int inlen |
| 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().
last event processed.
Definition at line 220 of file manager.c.
Referenced by action_waitevent(), free_session(), process_events(), and session_do().
| struct { ... } list |
Referenced by check_manager_session_inuse(), and handle_showmanconn().
| 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().
| int needdestroy |
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().
| struct mansession_session* next |
| int pending_event |
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().
| int send_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().
| time_t sessiontimeout |
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().
| char username[80] |
Logged in username
Definition at line 211 of file manager.c.
Referenced by action_login(), authenticate(), check_manager_session_inuse(), generic_http_callback(), handle_showmanconn(), manager_displayconnects(), 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().
| int writeperm |
Authorization for writing
Definition at line 215 of file manager.c.
Referenced by action_listcommands(), action_originate(), astman_verify_session_writepermissions(), authenticate(), handle_showmanconn(), and process_message().
| int writetimeout |
Timeout for ast_carefulwrite()
Definition at line 221 of file manager.c.
Referenced by authenticate(), send_string(), and session_do().