Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
ast_tcptls_session_args Struct Reference

arguments for the accepting thread More...

#include <tcptls.h>

Collaboration diagram for ast_tcptls_session_args:
Collaboration graph
[legend]

Data Fields

int accept_fd
 
void *(* accept_fn )(void *)
 
char hostname [MAXHOSTNAMELEN]
 
struct ast_sockaddr local_address
 
pthread_t master
 
const char * name
 
struct ast_sockaddr old_address
 
struct ast_tls_configold_tls_cfg
 
void(* periodic_fn )(void *)
 
int poll_timeout
 
struct ast_sockaddr remote_address
 
struct ast_tls_configtls_cfg
 
void *(* worker_fn )(void *)
 

Detailed Description

arguments for the accepting thread

Definition at line 130 of file tcptls.h.

Field Documentation

◆ accept_fd

int accept_fd

Definition at line 136 of file tcptls.h.

Referenced by __ast_http_load(), app_exec(), http_server_create(), and http_server_start().

◆ accept_fn

void *(* accept_fn) (void *)

the function in charge of doing the accept

Definition at line 140 of file tcptls.h.

Referenced by http_server_create().

◆ hostname

char hostname[MAXHOSTNAMELEN]

only necessary for SSL clients so we can compare to common name

Definition at line 134 of file tcptls.h.

Referenced by handle_tcptls_connection().

◆ local_address

struct ast_sockaddr local_address

◆ master

pthread_t master

Server accept_fn thread ID used for external shutdown requests.

Definition at line 139 of file tcptls.h.

Referenced by http_server_create().

◆ name

const char* name

◆ old_address

struct ast_sockaddr old_address

copy of the local or remote address depending on if its a client or server session

Definition at line 132 of file tcptls.h.

Referenced by handle_show_http(), and httpstatus_callback().

◆ old_tls_cfg

struct ast_tls_config* old_tls_cfg

copy of the SSL configuration to determine whether changes have been made

Definition at line 144 of file tcptls.h.

◆ periodic_fn

void(* periodic_fn) (void *)

something we may want to run before after select on the accept socket

Definition at line 141 of file tcptls.h.

◆ poll_timeout

int poll_timeout

Definition at line 137 of file tcptls.h.

Referenced by http_server_create(), and purge_old_stuff().

◆ remote_address

struct ast_sockaddr remote_address

Definition at line 133 of file tcptls.h.

Referenced by app_exec().

◆ tls_cfg

struct ast_tls_config* tls_cfg

points to the SSL configuration if any

Definition at line 135 of file tcptls.h.

Referenced by __ast_http_load(), __init_manager(), handle_tcptls_connection(), http_server_create(), mansession_get_transport(), and websocket_client_args_create().

◆ worker_fn

void *(* worker_fn) (void *)

the function in charge of doing the actual work

Definition at line 142 of file tcptls.h.

Referenced by ast_tcptls_client_create(), handle_tcptls_connection(), and http_server_create().


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