Pol  Revision:cb584c9
Pol::Core::PolConfig Struct Reference

#include <polcfg.h>

Public Member Functions

bool report_program_aborts ()
 Returns true if program aborts are reported. More...
 

Static Public Member Functions

static void read_pol_config (bool initial_load)
 
static void reload_pol_cfg ()
 

Public Attributes

int account_save
 
bool allow_multi_clients_per_account
 
int assertion_shutdown_save_type
 
bool cache_interactive_scripts
 
unsigned short character_slots
 
bool check_integrity
 
Crypt::TCryptInfo client_encryption_version
 
bool count_resource_tiles
 
unsigned short debug_level
 
bool debug_local_only
 
std::string debug_password
 
unsigned short debug_port
 
bool disable_nagle
 
bool discard_old_events
 
bool display_unknown_packets
 
bool enable_debug_log
 
bool enable_secure_trading
 
bool enforce_mount_objtype
 
bool exp_los_checks_map
 
bool ignore_load_errors
 
unsigned short inactivity_disconnect_timeout
 
unsigned short inactivity_warning_timeout
 
bool inhibit_saves
 
unsigned short listen_port
 
bool log_script_cycles
 
bool log_sysload
 
bool log_traces_when_stuck
 
unsigned short loglevel
 
unsigned short max_clients
 
unsigned short max_clients_bypass_cmdlevel
 
unsigned int max_objtype
 
unsigned int max_tile_id
 
unsigned short min_cmdlevel_to_login
 
unsigned short min_cmdlvl_ignore_inactivity
 
std::string minidump_type
 
unsigned short multithread
 
std::string pidfile_path
 
bool profile_cprops
 
std::string realm_data_path
 
std::string report_admin_email
 
bool report_critical_scripts
 
bool report_missing_configs
 
bool report_rtc_scripts
 
std::string report_server
 
std::string report_url
 
bool require_spellbooks
 
bool retain_cleartext_passwords
 
unsigned int runaway_script_threshold
 
unsigned short select_timeout_usecs
 
bool show_realm_info
 
bool show_speech_colors
 
int shutdown_save_type
 
bool single_thread_decay
 
bool thread_decay_statistics
 
std::string uo_datafile_root
 
bool use_single_thread_login
 
bool verbose
 
bool watch_mapcache
 
bool watch_rpm
 
bool watch_sysload
 
bool web_server
 
unsigned short web_server_debug
 
bool web_server_local_only
 
std::string web_server_password
 
unsigned short web_server_port
 
std::string world_data_path
 

Static Public Attributes

static struct stat pol_cfg_stat
 

Detailed Description

Definition at line 25 of file polcfg.h.

Member Function Documentation

void Pol::Core::PolConfig::read_pol_config ( bool  initial_load)
static

The profiler needs to gather some data before the pol.cfg file gets loaded, so when it turns out to be disabled, or when it was enabled before, but is being disabled now, run "garbage collection" to free the allocated resources

Definition at line 46 of file polcfg.cpp.

References account_save, allow_multi_clients_per_account, assertion_shutdown_save_type, cache_interactive_scripts, Pol::Crypt::CalculateCryptKeys(), character_slots, check_integrity, Pol::Core::CPropProfiler::clear(), client_encryption_version, Pol::Plib::SystemState::config, Pol::Clib::ExceptionParser::configureProgramAbortReportingSystem(), count_resource_tiles, debug_level, debug_local_only, debug_password, debug_port, DISABLE_DEBUGLOG, disable_nagle, discard_old_events, display_unknown_packets, enable_debug_log, enable_secure_trading, enforce_mount_objtype, Pol::Bscript::escript_config, exp_los_checks_map, EXTOBJ_HIGHEST_DEFAULT, Pol::Core::gamestate, ignore_load_errors, inactivity_disconnect_timeout, inactivity_warning_timeout, inhibit_saves, Pol::Core::CPropProfiler::instance(), listen_port, log_script_cycles, log_sysload, log_traces_when_stuck, Pol::Clib::LogfileTimestampEveryLine, loglevel, Pol::Bscript::EScriptConfig::max_call_depth, max_clients, max_clients_bypass_cmdlevel, max_objtype, max_tile_id, min_cmdlevel_to_login, min_cmdlvl_ignore_inactivity, minidump_type, multithread, Pol::Clib::normalized_dir_form(), Pol::Clib::passert_abort, Pol::Clib::passert_dump_stack, Pol::Clib::passert_nosave, Pol::Clib::passert_shutdown, pidfile_path, POLLOG_ERROR, profile_cprops, Pol::Clib::ConfigFile::readraw(), realm_data_path, Pol::Clib::ConfigElem::remove_bool(), Pol::Clib::ConfigElem::remove_int(), Pol::Clib::ConfigElem::remove_string(), Pol::Clib::ConfigElem::remove_ulong(), Pol::Clib::ConfigElem::remove_unsigned(), Pol::Clib::ConfigElem::remove_ushort(), report_critical_scripts, report_missing_configs, report_rtc_scripts, require_spellbooks, retain_cleartext_passwords, runaway_script_threshold, Pol::Core::SAVE_FULL, Pol::Core::SAVE_INCREMENTAL, select_timeout_usecs, Pol::Clib::MiniDumper::SetMiniDumpType(), show_realm_info, show_speech_colors, shutdown_save_type, single_thread_decay, Pol::Clib::strlower(), Pol::Plib::systemstate, thread_decay_statistics, uo_datafile_root, UOBJ_DEFAULT_MAX, UOBJ_HSA_MAX, UOBJ_SA_MAX, use_single_thread_login, verbose, watch_mapcache, watch_rpm, watch_sysload, web_server, web_server_debug, web_server_local_only, web_server_password, web_server_port, world_data_path, and Pol::Core::GameState::write_account_task.

Referenced by Pol::Core::reload_configuration(), reload_pol_cfg(), and Pol::xmain_inner().

void Pol::Core::PolConfig::reload_pol_cfg ( )
static

Definition at line 281 of file polcfg.cpp.

References pol_cfg_stat, POLLOG_ERROR, POLLOG_INFO, read_pol_config(), and THREAD_CHECKPOINT.

bool Pol::Core::PolConfig::report_program_aborts ( )

Returns true if program aborts are reported.

Definition at line 306 of file polcfg.cpp.

References Pol::Clib::ExceptionParser::programAbortReporting().

Member Data Documentation

int Pol::Core::PolConfig::account_save

Definition at line 90 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::allow_multi_clients_per_account

Definition at line 67 of file polcfg.h.

Referenced by Pol::Core::handle_delete_character(), and read_pol_config().

int Pol::Core::PolConfig::assertion_shutdown_save_type

Definition at line 86 of file polcfg.h.

Referenced by read_pol_config(), and Pol::xmain_inner().

bool Pol::Core::PolConfig::check_integrity

Definition at line 39 of file polcfg.h.

Referenced by read_pol_config().

Crypt::TCryptInfo Pol::Core::PolConfig::client_encryption_version

Definition at line 43 of file polcfg.h.

Referenced by Pol::Core::check_incoming_data(), and read_pol_config().

bool Pol::Core::PolConfig::count_resource_tiles

Definition at line 42 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::debug_level

Definition at line 78 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::debug_local_only

Definition at line 74 of file polcfg.h.

Referenced by read_pol_config().

std::string Pol::Core::PolConfig::debug_password

Definition at line 73 of file polcfg.h.

Referenced by Pol::Core::DebugContext::process(), and read_pol_config().

unsigned short Pol::Core::PolConfig::debug_port

Definition at line 72 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::disable_nagle

Definition at line 93 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::discard_old_events

Definition at line 83 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::display_unknown_packets

Definition at line 68 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::enable_debug_log

Definition at line 70 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::enable_secure_trading

Definition at line 54 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::enforce_mount_objtype

Definition at line 95 of file polcfg.h.

Referenced by Pol::Mobile::Character::equippable(), and read_pol_config().

bool Pol::Core::PolConfig::exp_los_checks_map

Definition at line 69 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::ignore_load_errors

Definition at line 56 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::inactivity_disconnect_timeout

Definition at line 59 of file polcfg.h.

Referenced by Pol::Core::client_io_thread(), and read_pol_config().

unsigned short Pol::Core::PolConfig::inactivity_warning_timeout

Definition at line 58 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::inhibit_saves

Definition at line 40 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::listen_port

Definition at line 31 of file polcfg.h.

Referenced by read_pol_config(), and Pol::xmain_inner().

bool Pol::Core::PolConfig::log_script_cycles

Definition at line 41 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::log_sysload

Definition at line 37 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::log_traces_when_stuck

Definition at line 76 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::loglevel

Definition at line 33 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::max_clients

Definition at line 64 of file polcfg.h.

Referenced by Pol::Core::char_select(), and read_pol_config().

unsigned short Pol::Core::PolConfig::max_clients_bypass_cmdlevel

Definition at line 66 of file polcfg.h.

Referenced by Pol::Core::char_select(), and read_pol_config().

unsigned int Pol::Core::PolConfig::max_objtype
unsigned short Pol::Core::PolConfig::min_cmdlevel_to_login

Definition at line 60 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::min_cmdlvl_ignore_inactivity

Definition at line 57 of file polcfg.h.

Referenced by Pol::Core::client_io_thread(), and read_pol_config().

std::string Pol::Core::PolConfig::minidump_type

Definition at line 88 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::multithread

Definition at line 44 of file polcfg.h.

Referenced by read_pol_config().

std::string Pol::Core::PolConfig::pidfile_path

Definition at line 30 of file polcfg.h.

Referenced by read_pol_config(), and Pol::xmain_inner().

struct stat Pol::Core::PolConfig::pol_cfg_stat
static

Definition at line 111 of file polcfg.h.

Referenced by reload_pol_cfg().

bool Pol::Core::PolConfig::profile_cprops
std::string Pol::Core::PolConfig::realm_data_path

Definition at line 29 of file polcfg.h.

Referenced by read_pol_config().

std::string Pol::Core::PolConfig::report_admin_email

crash reporting system with some early default values

Definition at line 106 of file polcfg.h.

bool Pol::Core::PolConfig::report_critical_scripts

Definition at line 80 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::report_missing_configs

Definition at line 81 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::report_rtc_scripts

Definition at line 79 of file polcfg.h.

Referenced by read_pol_config().

std::string Pol::Core::PolConfig::report_server

Definition at line 107 of file polcfg.h.

std::string Pol::Core::PolConfig::report_url

Definition at line 108 of file polcfg.h.

bool Pol::Core::PolConfig::require_spellbooks

Definition at line 53 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::retain_cleartext_passwords

Definition at line 82 of file polcfg.h.

Referenced by read_pol_config().

unsigned int Pol::Core::PolConfig::runaway_script_threshold
unsigned short Pol::Core::PolConfig::select_timeout_usecs
bool Pol::Core::PolConfig::show_realm_info

Definition at line 94 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::show_speech_colors

Definition at line 52 of file polcfg.h.

Referenced by read_pol_config().

int Pol::Core::PolConfig::shutdown_save_type

Definition at line 85 of file polcfg.h.

Referenced by read_pol_config(), and Pol::xmain_inner().

bool Pol::Core::PolConfig::single_thread_decay

Definition at line 96 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::thread_decay_statistics

Definition at line 97 of file polcfg.h.

Referenced by Pol::Core::decay_worldzone(), and read_pol_config().

bool Pol::Core::PolConfig::use_single_thread_login

Definition at line 91 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::verbose

Definition at line 32 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::watch_mapcache

Definition at line 38 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::watch_rpm

Definition at line 35 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::watch_sysload

Definition at line 36 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::web_server

Definition at line 45 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::web_server_debug

Definition at line 48 of file polcfg.h.

Referenced by read_pol_config().

bool Pol::Core::PolConfig::web_server_local_only

Definition at line 47 of file polcfg.h.

Referenced by read_pol_config().

std::string Pol::Core::PolConfig::web_server_password

Definition at line 49 of file polcfg.h.

Referenced by read_pol_config().

unsigned short Pol::Core::PolConfig::web_server_port

Definition at line 46 of file polcfg.h.

Referenced by Pol::Core::http_thread(), and read_pol_config().


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