MCPcopy Create free account
hub / github.com/arvidn/libtorrent / node_info

Method node_info

simulation/setup_dht.cpp:166–169  ·  view source on GitHub ↗

the node_id and IP address of this node

Source from the content-addressed store, hash-verified

164
165 // the node_id and IP address of this node
166 std::pair<dht::node_id, lt::udp::endpoint> node_info() const
167 {
168 return std::make_pair(dht().nid(), lt::udp::endpoint(m_io_context.get_ips().front(), 6881));
169 }
170
171 void bootstrap(std::vector<std::pair<dht::node_id, lt::udp::endpoint>> const& nodes)
172 {

Callers 2

dht_networkMethod · 0.80
router_nodesMethod · 0.80

Calls 2

dhtFunction · 0.85
frontMethod · 0.80

Tested by

no test coverage detected