MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Hello

Method Hello

src/i2p.cpp:329–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329std::unique_ptr<Sock> Session::Hello() const
330{
331 auto sock = m_control_host.Connect();
332
333 if (!sock) {
334 throw std::runtime_error(strprintf("Cannot connect to %s", m_control_host.ToString()));
335 }
336
337 SendRequestAndGetReply(*sock, "HELLO VERSION MIN=3.1 MAX=3.1");
338
339 return sock;
340}
341
342void Session::CheckControlSock()
343{

Callers

nothing calls this directly

Calls 2

ConnectMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected