Sun Oct 16 2011 08:43:14

Asterisk developer's documentation


mansession_session Struct Reference
Collaboration diagram for mansession_session:

Data Structures

struct  mansession_datastores

Data Fields

int authenticated
time_t authstart
struct ao2_containerblackfilters
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
unsigned long nc
int needdestroy
time_t noncetime
unsigned long oldnonce
int pending_event
int readperm
int send_events
time_t sessionstart
struct timeval sessionstart_tv
time_t sessiontimeout
struct sockaddr_in sin
char username [80]
pthread_t waiting_thread
struct ao2_containerwhitefilters
int writeperm
int writetimeout

Field Documentation

time_t authstart

Definition at line 969 of file manager.c.

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

char challenge[10]

Authentication challenge

Definition at line 959 of file manager.c.

Referenced by report_failed_challenge_response(), authenticate(), and action_challenge().

FILE* f

fdopen() on the underlying fd

Definition at line 949 of file manager.c.

Referenced by session_destructor(), send_string(), astman_append(), process_events(), get_input(), session_do(), generic_http_callback(), and auth_http_callback().

int fd

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

Definition at line 950 of file manager.c.

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

char inbuf[1025]

Buffer

Definition at line 963 of file manager.c.

Referenced by get_input(), and do_message().

int inlen

number of buffered bytes

Definition at line 965 of file manager.c.

Referenced by get_input().

int inuse

number of HTTP sessions using this entry

Definition at line 951 of file manager.c.

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

struct eventqent* last_ev

last event processed.

Definition at line 967 of file manager.c.

Referenced by session_destructor(), action_waitevent(), process_events(), session_do(), and auth_http_callback().

struct { ... } list
unsigned long nc

incremental nonce counter

Definition at line 975 of file manager.c.

Referenced by auth_http_callback().

Whether an HTTP session should be destroyed

Definition at line 952 of file manager.c.

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

Definition at line 977 of file manager.c.

time_t noncetime

Timer for nonce value expiration

Definition at line 971 of file manager.c.

Referenced by auth_http_callback().

unsigned long oldnonce

Stale nonce value

Definition at line 974 of file manager.c.

Referenced by find_session_by_nonce(), and auth_http_callback().

Pending events indicator in case when waiting_thread is NULL

Definition at line 970 of file manager.c.

Referenced by get_input(), and __ast_manager_event_multichan().

time_t sessionstart

Session start time

Definition at line 955 of file manager.c.

Referenced by handle_showmanconn(), authenticate(), and auth_http_callback().

Session timeout if HTTP

Definition at line 957 of file manager.c.

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

pthread_t waiting_thread

Sleeping thread using this descriptor

Definition at line 953 of file manager.c.

Referenced by build_mansession(), action_waitevent(), get_input(), __ast_manager_event_multichan(), and generic_http_callback().

Timeout for ast_carefulwrite()

Definition at line 968 of file manager.c.

Referenced by build_mansession(), send_string(), authenticate(), and auth_http_callback().


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