int main(int argc, char *argv[]) { int exit = 0; char *line; /* string to be read from input */ FILE *input; /* file input stream */ dogeFullColor(); newProcessList(); prepareSignals(); input = handleArguments(argc, argv); while(!exit) { showcwd("$"); line = readline(input); if(checkExit(line)) { exit = 1; } else { execute(line); } free(line); } destroyProcessList(); return EXIT_SUCCESS; }
Server::Server() : m_greeterManager(m_vncManager) , m_controlManager(m_vncManager) { prepareSignals(); std::vector<std::string> addresses; if (Configuration::options["listen"].empty()) { addresses.push_back(std::string()); } else { addresses = Configuration::options["listen"].as<std::vector<std::string>>(); } std::string port = Configuration::options["port"].as<std::string>(); listen(addresses, port); }