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 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
{
if (Daemon.init(argc, argv))
{
if (Daemon.start())
Daemon.run ();
Daemon.stop();
}
2014-12-10 20:10:07 +03:00
return EXIT_SUCCESS;
2013-12-10 17:05:42 +04:00
}
2015-11-03 17:15:49 +03: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