mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-21 23:01:48 +02:00
Temporary Makefile and main
This commit is contained in:
parent
bf8a61232e
commit
2c73daa4e2
2 changed files with 54 additions and 0 deletions
28
i2p.cpp
Normal file
28
i2p.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include <iostream>
|
||||
#include <cryptopp/integer.h>
|
||||
#include "Log.h"
|
||||
#include "base64.h"
|
||||
#include "Transports.h"
|
||||
#include "NTCPSession.h"
|
||||
#include "RouterInfo.h"
|
||||
#include "RouterContext.h"
|
||||
#include "Tunnel.h"
|
||||
#include "NetDb.h"
|
||||
#include "HTTPServer.h"
|
||||
|
||||
int main( int, char** )
|
||||
{
|
||||
i2p::util::HTTPServer httpServer (7070);
|
||||
|
||||
httpServer.Start ();
|
||||
i2p::data::netdb.Start ();
|
||||
i2p::transports.Start ();
|
||||
i2p::tunnel::tunnels.Start ();
|
||||
|
||||
sleep (1000);
|
||||
i2p::tunnel::tunnels.Stop ();
|
||||
i2p::transports.Stop ();
|
||||
i2p::data::netdb.Stop ();
|
||||
httpServer.Stop ();
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue