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

28 lines
408 B
C++
Raw Normal View History

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
{
if (Daemon.init(argc, argv))
{
if (Daemon.start())
Daemon.run ();
Daemon.stop();
}
2014-12-10 12:10:07 -05:00
return EXIT_SUCCESS;
2013-12-10 08:05:42 -05:00
}
2015-11-03 09:15:49 -05:00
#ifdef _WIN32
#include <windows.h>
int CALLBACK WinMain(
_In_ HINSTANCE hInstance,
_In_ HINSTANCE hPrevInstance,
_In_ LPSTR lpCmdLine,
_In_ int nCmdShow
)
{
return main(__argc, __argv);
}
#endif