1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-15 09:39:58 +00:00
i2pd/i2p.cpp

19 lines
330 B
C++
Raw Permalink 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 01:28:18 +01:00
2014-01-30 01:56:48 +01:00
int main( int argc, char* argv[] )
2013-12-10 08:05:42 -05:00
{
2014-04-23 02:10:51 +04:00
Daemon.init(argc, argv);
2014-07-02 13:48:45 -04:00
if (Daemon.start())
2014-04-20 05:54:34 +04:00
{
2014-07-02 13:48:45 -04:00
while (Daemon.running)
{
//TODO Meeh: Find something better to do here.
std::this_thread::sleep_for (std::chrono::seconds(1));
}
2014-04-20 05:54:34 +04:00
}
2014-04-22 08:25:19 +04:00
Daemon.stop();
2014-04-23 02:10:51 +04:00
return EXIT_SUCCESS;
2013-12-10 08:05:42 -05:00
}