MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / StartI2P

Function StartI2P

libi2pd/api.cpp:56–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55
56 void StartI2P (std::shared_ptr<std::ostream> logStream)
57 {
58 if (logStream)
59 i2p::log::Logger().SendTo (logStream);
60 else
61 i2p::log::Logger().SendTo (i2p::fs::DataDirPath (i2p::fs::GetAppName () + ".log"));
62 i2p::log::Logger().Start ();
63 i2p::transport::InitTransports ();
64 LogPrint(eLogInfo, "API: Starting NetDB");
65 i2p::data::netdb.Start();
66 LogPrint(eLogInfo, "API: Starting Transports");
67 i2p::transport::transports.Start();
68 LogPrint(eLogInfo, "API: Starting Tunnels");
69 i2p::tunnel::tunnels.Start();
70 LogPrint(eLogInfo, "API: Starting Router context");
71 i2p::context.Start();
72 }
73
74 void StopI2P ()
75 {

Callers 1

C_StartI2PFunction · 0.85

Calls 5

DataDirPathFunction · 0.85
InitTransportsFunction · 0.85
LogPrintFunction · 0.85
SendToMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected