Backported various little edits from Pro edition.
This commit is contained in:
parent
ef9938da0c
commit
4c9c6fa7ba
78 changed files with 2334 additions and 1266 deletions
|
@ -30,6 +30,7 @@ namespace Util {
|
|||
void addOption(std::string optname, JSON::Value option);
|
||||
void printHelp(std::ostream & output);
|
||||
bool parseArgs(int & argc, char ** & argv);
|
||||
bool hasOption(const std::string & optname);
|
||||
JSON::Value & getOption(std::string optname, bool asArray = false);
|
||||
std::string getString(std::string optname);
|
||||
long long int getInteger(std::string optname);
|
||||
|
@ -40,6 +41,7 @@ namespace Util {
|
|||
int serveThreadedSocket(int (*callback)(Socket::Connection & S));
|
||||
int serveForkedSocket(int (*callback)(Socket::Connection & S));
|
||||
int servePlainSocket(int (*callback)(Socket::Connection & S));
|
||||
void addOptionsFromCapabilities(const JSON::Value & capabilities);
|
||||
void addBasicConnectorOptions(JSON::Value & capabilities);
|
||||
void addConnectorOptions(int port, JSON::Value & capabilities);
|
||||
};
|
||||
|
@ -53,7 +55,4 @@ namespace Util {
|
|||
/// Will set the active user to the named username.
|
||||
void setUser(std::string user);
|
||||
|
||||
/// Will turn the current process into a daemon.
|
||||
void Daemonize(bool notClose = false);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue