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

Method CreateConnection

libi2pd_client/BOB.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 void BOBI2PInboundTunnel::CreateConnection (std::shared_ptr<AddressReceiver> receiver, std::shared_ptr<const i2p::data::LeaseSet> leaseSet)
141 {
142 LogPrint (eLogDebug, "BOB: New inbound connection");
143 auto connection = std::make_shared<I2PTunnelConnection>(this, receiver->socket, leaseSet);
144 AddHandler (connection);
145 connection->I2PConnect (receiver->data, receiver->dataLen);
146 }
147
148 BOBI2POutboundTunnel::BOBI2POutboundTunnel (const std::string& outhost, uint16_t port,
149 std::shared_ptr<ClientDestination> localDestination, bool quiet): BOBI2PTunnel (localDestination),

Callers

nothing calls this directly

Calls 2

LogPrintFunction · 0.85
I2PConnectMethod · 0.80

Tested by

no test coverage detected