WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
webcface::server Namespace Reference

Classes

class  AppWrapper
 
class  CustomLogger
 
struct  MemberData
 
class  Server
 
class  ServerStorage
 

Typedefs

using wsConnPtr = void *
 
using LoggerCallback = std::function< void(const char *, std::size_t, int)>
 
using OpenCallback = std::function< void(void *, const char *)>
 
using CloseCallback = std::function< void(void *, const char *)>
 
using MessageCallback = std::function< void(void *, const char *, std::size_t)>
 
using MemberDataPtr = std::shared_ptr< MemberData >
 

Functions

std::string getStaticDir (const std::shared_ptr< spdlog::logger > &logger)
 
std::string getTempDir (const std::shared_ptr< spdlog::logger > &logger)
 
std::vector< std::string > getIpAddresses (const std::shared_ptr< spdlog::logger > &logger)
 
std::string getHostName (const std::shared_ptr< spdlog::logger > &logger)
 
std::pair< unsigned int, SharedStringfindReqField (StrMap2< unsigned int > &req, const SharedString &member, const SharedString &field)
 
void initVips ()
 
std_fs::path getExeDir (const std::shared_ptr< spdlog::logger > &logger)
 
static spdlog::level::level_enum convertLevel (int level)
 

Variables

constexpr char field_separator = '.'
 
static std::string static_dir
 
static std::unique_ptr< CustomLoggercrow_custom_logger
 
static const std::thread::id MAIN_THREAD_ID = std::this_thread::get_id()
 

Typedef Documentation

◆ CloseCallback

using CloseCallback = std::function<void(void *, const char *)>

◆ LoggerCallback

using LoggerCallback = std::function<void(const char *, std::size_t, int)>

◆ MemberDataPtr

using MemberDataPtr = std::shared_ptr<MemberData>

◆ MessageCallback

using MessageCallback = std::function<void(void *, const char *, std::size_t)>

◆ OpenCallback

using OpenCallback = std::function<void(void *, const char *)>

◆ wsConnPtr

typedef void * wsConnPtr

Function Documentation

◆ convertLevel()

static spdlog::level::level_enum convertLevel ( int  level)
inlinestatic

◆ findReqField()

std::pair< unsigned int, SharedString > findReqField ( StrMap2< unsigned int > &  req,
const SharedString member,
const SharedString field 
)

◆ getExeDir()

std_fs::path getExeDir ( const std::shared_ptr< spdlog::logger > &  logger)

◆ getHostName()

std::string getHostName ( const std::shared_ptr< spdlog::logger > &  logger)

◆ getIpAddresses()

std::vector< std::string > getIpAddresses ( const std::shared_ptr< spdlog::logger > &  logger)

◆ getStaticDir()

std::string getStaticDir ( const std::shared_ptr< spdlog::logger > &  logger)

◆ getTempDir()

std::string getTempDir ( const std::shared_ptr< spdlog::logger > &  logger)

◆ initVips()

void initVips ( )

Variable Documentation

◆ crow_custom_logger

std::unique_ptr<CustomLogger> crow_custom_logger
static

◆ field_separator

constexpr char field_separator = '.'
constexpr

◆ MAIN_THREAD_ID

const std::thread::id MAIN_THREAD_ID = std::this_thread::get_id()
static

◆ static_dir

std::string static_dir
static