i2pd/i2p.cpp

30 lines
660 B
C++
Raw Normal View History

2013-12-10 17:05:42 +04:00
#include <iostream>
#include <cryptopp/integer.h>
#include <boost/thread.hpp>
2013-12-10 17:05:42 +04:00
#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 ();
boost::this_thread::sleep(boost::posix_time::seconds(1000));
2013-12-10 17:05:42 +04:00
i2p::tunnel::tunnels.Stop ();
i2p::transports.Stop ();
i2p::data::netdb.Stop ();
httpServer.Stop ();
return 0;
}