Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
mg_context Struct Reference

Data Fields

int context_type
 
struct socketlistening_sockets
 
struct mg_pollfdlistening_socket_fds
 
unsigned int num_listening_sockets
 
struct mg_connectionworker_connections
 
stop_flag_t stop_flag
 
pthread_mutex_t thread_mutex
 
pthread_t masterthreadid
 
unsigned int cfg_worker_threads
 
pthread_t * worker_threadids
 
unsigned long starter_thread_idx
 
struct socketsqueue
 
volatile int sq_head
 
volatile int sq_tail
 
pthread_cond_t sq_full
 
pthread_cond_t sq_empty
 
volatile int sq_blocked
 
int sq_size
 
unsigned int max_request_size
 
struct twebdav_lock webdav_lock [NUM_WEBDAV_LOCKS]
 
char * systemName
 
time_t start_time
 
pthread_mutex_t nonce_mutex
 
struct mg_callbacks callbacks
 
void * user_data
 
struct mg_domain_context dd
 

Detailed Description

Definition at line 2345 of file civetweb.c.

Field Documentation

◆ callbacks

◆ cfg_worker_threads

unsigned int mg_context::cfg_worker_threads

◆ context_type

◆ dd

◆ listening_socket_fds

struct mg_pollfd* mg_context::listening_socket_fds

Definition at line 2357 of file civetweb.c.

Referenced by close_all_listening_sockets(), master_thread_run(), and set_ports_option().

◆ listening_sockets

◆ masterthreadid

pthread_t mg_context::masterthreadid

Definition at line 2376 of file civetweb.c.

Referenced by mg_start2(), and mg_stop().

◆ max_request_size

unsigned int mg_context::max_request_size

Definition at line 2401 of file civetweb.c.

Referenced by handle_cgi_request(), mg_start2(), and worker_thread_run().

◆ nonce_mutex

pthread_mutex_t mg_context::nonce_mutex

Definition at line 2427 of file civetweb.c.

Referenced by free_context(), mg_lock_context(), mg_start2(), and mg_unlock_context().

◆ num_listening_sockets

unsigned int mg_context::num_listening_sockets

◆ sq_blocked

volatile int mg_context::sq_blocked

Definition at line 2393 of file civetweb.c.

Referenced by mg_get_context_info(), mg_start2(), and produce_socket().

◆ sq_empty

pthread_cond_t mg_context::sq_empty

Definition at line 2392 of file civetweb.c.

Referenced by consume_socket(), free_context(), mg_start2(), and produce_socket().

◆ sq_full

pthread_cond_t mg_context::sq_full

◆ sq_head

volatile int mg_context::sq_head

Definition at line 2389 of file civetweb.c.

Referenced by consume_socket(), mg_get_context_info(), and produce_socket().

◆ sq_size

int mg_context::sq_size

Definition at line 2394 of file civetweb.c.

Referenced by consume_socket(), mg_get_context_info(), mg_start2(), and produce_socket().

◆ sq_tail

volatile int mg_context::sq_tail

Definition at line 2390 of file civetweb.c.

Referenced by consume_socket(), mg_get_context_info(), and produce_socket().

◆ squeue

struct socket* mg_context::squeue

Definition at line 2387 of file civetweb.c.

Referenced by consume_socket(), free_context(), mg_start2(), and produce_socket().

◆ start_time

time_t mg_context::start_time

◆ starter_thread_idx

unsigned long mg_context::starter_thread_idx

Definition at line 2380 of file civetweb.c.

Referenced by mg_start2().

◆ stop_flag

◆ systemName

char* mg_context::systemName

Definition at line 2411 of file civetweb.c.

Referenced by free_context(), and mg_start2().

◆ thread_mutex

pthread_mutex_t mg_context::thread_mutex

◆ user_data

◆ webdav_lock

struct twebdav_lock mg_context::webdav_lock[NUM_WEBDAV_LOCKS]

Definition at line 2408 of file civetweb.c.

Referenced by dav_lock_file(), dav_unlock_file(), and print_props().

◆ worker_connections

struct mg_connection* mg_context::worker_connections

Definition at line 2360 of file civetweb.c.

Referenced by free_context(), mg_start2(), and worker_thread_run().

◆ worker_threadids

pthread_t* mg_context::worker_threadids

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