![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "compat.h"#include "fs.h"#include "logging.h"#include "tinyformat.h"#include "utiltime.h"#include "util/threadnames.h"#include <atomic>#include <exception>#include <map>#include <stdint.h>#include <string>#include <vector>#include <boost/thread/exceptions.hpp>#include "pubkey.h"Go to the source code of this file.
Functions | |
| void | SetupEnvironment () |
| bool | SetupNetworking () |
| template<typename... Args> | |
| bool | error (const char *fmt, const Args &... args) |
| void | PrintExceptionContinue (const std::exception *pex, const char *pszThread) |
| void | ParseParameters (int argc, const char *const argv[]) |
| void | FileCommit (FILE *fileout) |
| bool | TruncateFile (FILE *file, unsigned int length) |
| int | RaiseFileDescriptorLimit (int nMinFD) |
| this function tries to raise the file descriptor limit to the requested number. More... | |
| void | AllocateFileRange (FILE *file, unsigned int offset, unsigned int length) |
| this function tries to make a particular range of a file allocated (corresponding to disk space) it is advisory, and the range specified in the arguments will never contain live data More... | |
| bool | RenameOver (fs::path src, fs::path dest) |
| bool | TryCreateDirectory (const fs::path &p) |
| Ignores exceptions thrown by Boost's create_directory if the requested directory exists. More... | |
| fs::path | GetDefaultDataDir () |
| const fs::path & | GetDataDir (bool fNetSpecific=true) |
| void | ClearDatadirCache () |
| fs::path | GetConfigFile () |
| fs::path | GetMasternodeConfigFile () |
| fs::path | GetPidFile () |
| void | CreatePidFile (const fs::path &path, pid_t pid) |
| void | ReadConfigFile (std::map< std::string, std::string > &mapSettingsRet, std::map< std::string, std::vector< std::string > > &mapMultiSettingsRet) |
| fs::path | GetTempPath () |
| void | runCommand (std::string strCommand) |
| bool | IsSwitchChar (char c) |
| std::string | GetArg (const std::string &strArg, const std::string &strDefault) |
| Return string argument or default value. More... | |
| int64_t | GetArg (const std::string &strArg, int64_t nDefault) |
| Return integer argument or default value. More... | |
| bool | GetBoolArg (const std::string &strArg, bool fDefault) |
| Return boolean argument or default value. More... | |
| bool | SoftSetArg (const std::string &strArg, const std::string &strValue) |
| Set an argument if it doesn't already have a value. More... | |
| bool | SoftSetBoolArg (const std::string &strArg, bool fValue) |
| Set a boolean argument if it doesn't already have a value. More... | |
| std::string | HelpMessageGroup (const std::string &message) |
| Format a string to be used as group of options in help messages. More... | |
| std::string | HelpMessageOpt (const std::string &option, const std::string &message) |
| Format a string to be used as option description in help messages. More... | |
| void | SetThreadPriority (int nPriority) |
| template<typename Callable > | |
| void | TraceThread (const char *name, Callable func) |
| fs::path | AbsPathForConfigVal (const boost::filesystem::path &path, bool net_specific=true) |
| bool | PointHashingSuccessively (const CPubKey &pk, const unsigned char *tweak, unsigned char *out) |
Variables | |
| const char *const | DEFAULT_DEBUGLOGFILE |
| Server/client environment: argument handling, config file parsing, thread wrappers. More... | |
| bool | fMasterNode |
| bool | fLiteMode |
| bool | fEnableSwiftTX |
| int | nSwiftTXDepth |
| int64_t | enforceMasternodePaymentsTime |
| std::string | strMasterNodeAddr |
| int | keysLoaded |
| bool | fSucessfullyLoaded |
| std::vector< int64_t > | obfuScationDenominations |
| All denominations used by obfuscation. More... | |
| std::string | strBudgetMode |
| std::map< std::string, std::string > | mapArgs |
| std::map< std::string, std::vector< std::string > > | mapMultiArgs |
| std::string | strMiscWarning |
| fs::path AbsPathForConfigVal | ( | const boost::filesystem::path & | path, |
| bool | net_specific = true |
||
| ) |
| void AllocateFileRange | ( | FILE * | file, |
| unsigned int | offset, | ||
| unsigned int | length | ||
| ) |
| void CreatePidFile | ( | const fs::path & | path, |
| pid_t | pid | ||
| ) |
| bool error | ( | const char * | fmt, |
| const Args &... | args | ||
| ) |
| std::string GetArg | ( | const std::string & | strArg, |
| const std::string & | strDefault | ||
| ) |
| int64_t GetArg | ( | const std::string & | strArg, |
| int64_t | nDefault | ||
| ) |
| bool GetBoolArg | ( | const std::string & | strArg, |
| bool | fDefault | ||
| ) |
| fs::path GetConfigFile | ( | ) |
| const fs::path& GetDataDir | ( | bool | fNetSpecific = true | ) |
| fs::path GetDefaultDataDir | ( | ) |
| fs::path GetMasternodeConfigFile | ( | ) |
| fs::path GetPidFile | ( | ) |
| std::string HelpMessageGroup | ( | const std::string & | message | ) |
| std::string HelpMessageOpt | ( | const std::string & | option, |
| const std::string & | message | ||
| ) |
Format a string to be used as option description in help messages.
| option | Option message (e.g. "-rpcuser=<user>") |
| message | Option description (e.g. "Username for JSON-RPC connections") |
Definition at line 286 of file util.cpp.
|
inline |
| void ParseParameters | ( | int | argc, |
| const char *const | argv[] | ||
| ) |
| bool PointHashingSuccessively | ( | const CPubKey & | pk, |
| const unsigned char * | tweak, | ||
| unsigned char * | out | ||
| ) |
| void PrintExceptionContinue | ( | const std::exception * | pex, |
| const char * | pszThread | ||
| ) |
| int RaiseFileDescriptorLimit | ( | int | nMinFD | ) |
| void ReadConfigFile | ( | std::map< std::string, std::string > & | mapSettingsRet, |
| std::map< std::string, std::vector< std::string > > & | mapMultiSettingsRet | ||
| ) |
| bool RenameOver | ( | fs::path | src, |
| fs::path | dest | ||
| ) |
| void runCommand | ( | std::string | strCommand | ) |
| void SetThreadPriority | ( | int | nPriority | ) |
| void SetupEnvironment | ( | ) |
| bool SetupNetworking | ( | ) |
| bool SoftSetArg | ( | const std::string & | strArg, |
| const std::string & | strValue | ||
| ) |
| bool SoftSetBoolArg | ( | const std::string & | strArg, |
| bool | fValue | ||
| ) |
Set a boolean argument if it doesn't already have a value.
| strArg | Argument to set (e.g. "-foo") |
| fValue | Value (e.g. false) |
Definition at line 270 of file util.cpp.
| void TraceThread | ( | const char * | name, |
| Callable | func | ||
| ) |
| bool TryCreateDirectory | ( | const fs::path & | p | ) |
| const char* const DEFAULT_DEBUGLOGFILE |
Server/client environment: argument handling, config file parsing, thread wrappers.
Definition at line 12 of file logging.cpp.
| int keysLoaded |
| std::map<std::string, std::vector<std::string> > mapMultiArgs |
| std::vector<int64_t> obfuScationDenominations |
1.8.17