i2pd/i2p.cpp

24 lines
557 B
C++
Raw Normal View History

#include <boost/filesystem.hpp>
2014-02-05 03:50:13 +04:00
2014-01-30 04:56:48 +04:00
#include "util.h"
2014-04-20 05:54:34 +04:00
#include "Daemon.h"
2014-02-05 04:28:18 +04:00
2014-01-30 04:56:48 +04:00
int main( int argc, char* argv[] )
2013-12-10 17:05:42 +04:00
{
2014-04-20 05:54:34 +04:00
i2p::util::config::OptionParser(argc, argv);
2014-03-18 02:31:29 +04:00
2014-04-20 05:54:34 +04:00
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);
2014-04-20 05:54:34 +04:00
Daemon.start();
while (Daemon.running)
{
//TODO Meeh: Find something better to do here.
std::this_thread::sleep_for (std::chrono::seconds(1));
}
Daemon.start();
2014-02-05 03:50:13 +04:00
2014-04-20 05:54:34 +04:00
return 0;
2013-12-10 17:05:42 +04:00
}