mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
604 B
44 lines
604 B
![]()
8 years ago
|
#include <stdlib.h>
|
||
|
#include "Daemon.h"
|
||
![]()
11 years ago
|
|
||
![]()
8 years ago
|
#if defined(QT_GUI_LIB)
|
||
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace qt
|
||
|
{
|
||
|
int RunQT (int argc, char* argv[]);
|
||
|
}
|
||
|
}
|
||
![]()
11 years ago
|
int main( int argc, char* argv[] )
|
||
![]()
11 years ago
|
{
|
||
![]()
8 years ago
|
return i2p::qt::RunQT (argc, argv);
|
||
|
}
|
||
|
|
||
![]()
8 years ago
|
#else
|
||
![]()
8 years ago
|
int main( int argc, char* argv[] )
|
||
|
{
|
||
![]()
8 years ago
|
if (Daemon.init(argc, argv))
|
||
![]()
9 years ago
|
{
|
||
|
if (Daemon.start())
|
||
|
Daemon.run ();
|
||
|
Daemon.stop();
|
||
|
}
|
||
![]()
10 years ago
|
return EXIT_SUCCESS;
|
||
![]()
11 years ago
|
}
|
||
![]()
8 years ago
|
#endif
|
||
![]()
9 years ago
|
|
||
![]()
9 years ago
|
#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
|