CatapultServer
v0.5.0.1 (Elephant)
|
Typedefs | |
using | CreateProcessHost = std::function< std::shared_ptr< void >(config::CatapultConfiguration &&, const crypto::KeyPair &)> |
Enumerations | |
enum | ProcessOptions { ProcessOptions::Exit_After_Process_Host_Creation, ProcessOptions::Exit_After_Termination_Signal } |
Process options. More... | |
Functions | |
boost::filesystem::path | GetResourcesPath (int argc, const char **argv) |
int | ProcessMain (int argc, const char **argv, const std::string &host, const CreateProcessHost &createProcessHost) |
int | ProcessMain (int argc, const char **argv, const std::string &host, ProcessOptions processOptions, const CreateProcessHost &createProcessHost) |
void | WaitForTerminationSignal () |
Pauses until the program receives a termination signal. More... | |
using catapult::process::CreateProcessHost = typedef std::function<std::shared_ptr<void> (config::CatapultConfiguration&&, const crypto::KeyPair&)> |
Prototype for creating a process host.
|
strong |
boost::filesystem::path catapult::process::GetResourcesPath | ( | int | argc, |
const char ** | argv | ||
) |
Extracts the resources path from the command line arguments. argc commmand line arguments are accessible via argv.
int catapult::process::ProcessMain | ( | int | argc, |
const char ** | argv, | ||
const std::string & | host, | ||
const CreateProcessHost & | createProcessHost | ||
) |
Main entry point for a catapult process named host with default process options. argc commmand line arguments are accessible via argv. createProcessHost creates the process host.
int catapult::process::ProcessMain | ( | int | argc, |
const char ** | argv, | ||
const std::string & | host, | ||
ProcessOptions | processOptions, | ||
const CreateProcessHost & | createProcessHost | ||
) |
Main entry point for a catapult process named host with specified process options (processOptions). argc commmand line arguments are accessible via argv. createProcessHost creates the process host.
void catapult::process::WaitForTerminationSignal | ( | ) |
Pauses until the program receives a termination signal.