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

Method HandoverToUpstreamProxy

libi2pd_client/HTTPProxy.cpp:648–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646 }
647
648 void HTTPReqHandler::HandoverToUpstreamProxy()
649 {
650 LogPrint(eLogDebug, "HTTPProxy: Handover to SOCKS proxy");
651 auto connection = CreateSocketsPipe (GetOwner(), m_proxysock, m_sock);
652 m_sock = nullptr;
653 m_proxysock = nullptr;
654 GetOwner()->AddHandler(connection);
655 connection->Start();
656 Terminate();
657 }
658
659 void HTTPReqHandler::HTTPConnect(std::string_view host, uint16_t port)
660 {

Callers

nothing calls this directly

Calls 4

LogPrintFunction · 0.85
CreateSocketsPipeFunction · 0.85
AddHandlerMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected