Asterisk - The Open Source Telephony Project  18.5.0
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 129 of file tcptls.h.

Field Documentation

◆ accept_fd

int accept_fd

◆ accept_fn

void*(* accept_fn) (void *)

the function in charge of doing the accept

Definition at line 139 of file tcptls.h.

Referenced by ast_tcptls_server_start().

◆ hostname

char hostname[MAXHOSTNAMELEN]

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

Definition at line 133 of file tcptls.h.

Referenced by handle_tcptls_connection(), and sip_prepare_socket().

◆ local_address

struct ast_sockaddr local_address

◆ master

pthread_t master

Server accept_fn thread ID used for external shutdown requests.

Definition at line 138 of file tcptls.h.

Referenced by ast_tcptls_server_start(), ast_tcptls_server_stop(), and unload_module().

◆ 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 131 of file tcptls.h.

Referenced by ast_tcptls_client_create(), ast_tcptls_server_start(), 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 143 of file tcptls.h.

Referenced by ast_tcptls_server_start(), and ast_tcptls_server_stop().

◆ periodic_fn

void(* periodic_fn) (void *)

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

Definition at line 140 of file tcptls.h.

Referenced by ast_tcptls_server_root().

◆ poll_timeout

int poll_timeout

Definition at line 136 of file tcptls.h.

Referenced by ast_tcptls_server_root().

◆ remote_address

struct ast_sockaddr remote_address

◆ tls_cfg

struct ast_tls_config* tls_cfg

◆ worker_fn

void*(* worker_fn) (void *)

the function in charge of doing the actual work

Definition at line 141 of file tcptls.h.

Referenced by ast_tcptls_client_create(), and handle_tcptls_connection().


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