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

Function ConnectionTypeAsString

src/node/connection_types.cpp:8–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <cassert>
7
8std::string ConnectionTypeAsString(ConnectionType conn_type)
9{
10 switch (conn_type) {
11 case ConnectionType::INBOUND:
12 return "inbound";
13 case ConnectionType::MANUAL:
14 return "manual";
15 case ConnectionType::FEELER:
16 return "feeler";
17 case ConnectionType::OUTBOUND_FULL_RELAY:
18 return "outbound-full-relay";
19 case ConnectionType::BLOCK_RELAY:
20 return "block-relay-only";
21 case ConnectionType::ADDR_FETCH:
22 return "addr-fetch";
23 case ConnectionType::PRIVATE_BROADCAST:
24 return "private-broadcast";
25 } // no default case, so the compiler can warn about missing cases
26
27 assert(false);
28}
29
30std::string TransportTypeAsString(TransportProtocolType transport_type)
31{

Callers 5

ConnectNodeMethod · 0.85
CloseSocketDisconnectMethod · 0.85
ThreadOpenConnectionsMethod · 0.85
getpeerinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected