mirror of https://github.com/PurpleI2P/i2pd
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
557 B
C++
24 lines
557 B
C++
#include <boost/filesystem.hpp>
|
|
|
|
#include "util.h"
|
|
#include "Daemon.h"
|
|
|
|
int main( int argc, char* argv[] )
|
|
{
|
|
i2p::util::config::OptionParser(argc, argv);
|
|
|
|
LogPrint("\n\n\n\ni2pd starting\n");
|
|
LogPrint("data directory: ", i2p::util::filesystem::GetDataDir().string());
|
|
i2p::util::filesystem::ReadConfigFile(i2p::util::config::mapArgs, i2p::util::config::mapMultiArgs);
|
|
|
|
Daemon.start();
|
|
while (Daemon.running)
|
|
{
|
|
//TODO Meeh: Find something better to do here.
|
|
std::this_thread::sleep_for (std::chrono::seconds(1));
|
|
}
|
|
Daemon.start();
|
|
|
|
return 0;
|
|
}
|