Method Protocols.Bittorrent.DHT()->Routingtable()->add_node()


Method add_node

DHTNode add_node(string|DHTNode n, void|string ip, void|int port)

Description

Attepmts to add a node to our routing table. If a node with the same hash and/or endpoint already exists, that node is returned instead. If this node is inserted into the routing table, it is returned. If the node could not be inserted at all, UNDEFINED is returned.