FD.io VPP  v19.08.1-401-g8e4ed521a
Vector Packet Processing
http_static_server_main_t Struct Reference

Main data structure. More...

+ Collaboration diagram for http_static_server_main_t:

Public Member Functions

 BVT (clib_bihash) name_to_data
 Hash table which maps file name to file data. More...
 

Data Fields

http_session_t ** sessions
 Per thread vector of session pools. More...
 
clib_rwlock_t sessions_lock
 Session pool reader writer lock. More...
 
u32 ** session_to_http_session
 vpp session to http session index map More...
 
int debug_level
 Enable debug messages. More...
 
svm_msg_q_t ** vpp_queue
 vpp message/event queue More...
 
file_data_cache_tcache_pool
 Unified file data cache pool. More...
 
uwordget_url_handlers
 Hash tables for built-in GET and POST handlers. More...
 
uwordpost_url_handlers
 
u64 cache_size
 Current cache size. More...
 
u64 cache_limit
 Max cache size in bytes. More...
 
u64 cache_evictions
 Number of cache evictions. More...
 
u32 first_index
 Cache LRU listheads. More...
 
u32 last_index
 
u8www_root
 root path to be served More...
 
svm_queue_tvl_input_queue
 Server's event queue. More...
 
u32 my_client_index
 API client handle. More...
 
u32 app_index
 Application index. More...
 
u32 node_index
 Process node index for event scheduling. More...
 
tw_timer_wheel_2t_1w_2048sl_t tw
 Session cleanup timer wheel. More...
 
clib_spinlock_t tw_lock
 
clib_timebase_t timebase
 Time base, so we can generate browser cache control http spew. More...
 
u32 prealloc_fifos
 Number of preallocated fifos, usually 0. More...
 
u32 private_segment_size
 Private segment size, usually 0. More...
 
u32 fifo_size
 Size of the allocated rx, tx fifos, roughly 8K or so. More...
 
u8uri
 The bind URI, defaults to tcp://0.0.0.0/80. More...
 
vlib_main_tvlib_main
 

Detailed Description

Main data structure.

Definition at line 133 of file http_static.h.

Member Function Documentation

◆ BVT()

http_static_server_main_t::BVT ( clib_bihash  )

Hash table which maps file name to file data.

Field Documentation

◆ app_index

u32 http_static_server_main_t::app_index

Application index.

Definition at line 178 of file http_static.h.

◆ cache_evictions

u64 http_static_server_main_t::cache_evictions

Number of cache evictions.

Definition at line 162 of file http_static.h.

◆ cache_limit

u64 http_static_server_main_t::cache_limit

Max cache size in bytes.

Definition at line 160 of file http_static.h.

◆ cache_pool

file_data_cache_t* http_static_server_main_t::cache_pool

Unified file data cache pool.

Definition at line 149 of file http_static.h.

◆ cache_size

u64 http_static_server_main_t::cache_size

Current cache size.

Definition at line 158 of file http_static.h.

◆ debug_level

int http_static_server_main_t::debug_level

Enable debug messages.

Definition at line 143 of file http_static.h.

◆ fifo_size

u32 http_static_server_main_t::fifo_size

Size of the allocated rx, tx fifos, roughly 8K or so.

Definition at line 195 of file http_static.h.

◆ first_index

u32 http_static_server_main_t::first_index

Cache LRU listheads.

Definition at line 165 of file http_static.h.

◆ get_url_handlers

uword* http_static_server_main_t::get_url_handlers

Hash tables for built-in GET and POST handlers.

Definition at line 154 of file http_static.h.

◆ last_index

u32 http_static_server_main_t::last_index

Definition at line 166 of file http_static.h.

◆ my_client_index

u32 http_static_server_main_t::my_client_index

API client handle.

Definition at line 175 of file http_static.h.

◆ node_index

u32 http_static_server_main_t::node_index

Process node index for event scheduling.

Definition at line 181 of file http_static.h.

◆ post_url_handlers

uword* http_static_server_main_t::post_url_handlers

Definition at line 155 of file http_static.h.

◆ prealloc_fifos

u32 http_static_server_main_t::prealloc_fifos

Number of preallocated fifos, usually 0.

Definition at line 191 of file http_static.h.

◆ private_segment_size

u32 http_static_server_main_t::private_segment_size

Private segment size, usually 0.

Definition at line 193 of file http_static.h.

◆ session_to_http_session

u32** http_static_server_main_t::session_to_http_session

vpp session to http session index map

Definition at line 140 of file http_static.h.

◆ sessions

http_session_t** http_static_server_main_t::sessions

Per thread vector of session pools.

Definition at line 136 of file http_static.h.

◆ sessions_lock

clib_rwlock_t http_static_server_main_t::sessions_lock

Session pool reader writer lock.

Definition at line 138 of file http_static.h.

◆ timebase

clib_timebase_t http_static_server_main_t::timebase

Time base, so we can generate browser cache control http spew.

Definition at line 188 of file http_static.h.

◆ tw

tw_timer_wheel_2t_1w_2048sl_t http_static_server_main_t::tw

Session cleanup timer wheel.

Definition at line 184 of file http_static.h.

◆ tw_lock

clib_spinlock_t http_static_server_main_t::tw_lock

Definition at line 185 of file http_static.h.

◆ uri

u8* http_static_server_main_t::uri

The bind URI, defaults to tcp://0.0.0.0/80.

Definition at line 197 of file http_static.h.

◆ vl_input_queue

svm_queue_t* http_static_server_main_t::vl_input_queue

Server's event queue.

Definition at line 172 of file http_static.h.

◆ vlib_main

vlib_main_t* http_static_server_main_t::vlib_main

Definition at line 198 of file http_static.h.

◆ vpp_queue

svm_msg_q_t** http_static_server_main_t::vpp_queue

vpp message/event queue

Definition at line 146 of file http_static.h.

◆ www_root

u8* http_static_server_main_t::www_root

root path to be served

Definition at line 169 of file http_static.h.


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