i2pd/i2pd.cpp

19 lines
281 B
C++
Raw Normal View History

2014-04-23 02:10:51 +04:00
#include <thread>
2014-06-11 12:01:13 +04:00
#include <stdlib.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-12-10 20:10:07 +03:00
Daemon.init(argc, argv);
if (Daemon.start())
{
while (Daemon.running)
{
std::this_thread::sleep_for (std::chrono::seconds(1));
}
}
Daemon.stop();
return EXIT_SUCCESS;
2013-12-10 17:05:42 +04:00
}
2015-11-03 17:15:49 +03:00