opendht-2.1.4/src/node.cpp
/** To be called when a message was sent to the node */
To be called when a message was sent to the node
To be called when a message was sent to the node
void
Node::requested(const Sp<net::Request>& req)
{
    auto e = requests_.emplace(req->getTid(), req);
    if (not e.second and req != e.first->second) {
        e.first->second->setExpired();
        e.first->second = req;
    }
}
void Node :: requested ( const Sp < net :: Request > & req ) { auto e = requests_ . emplace ( req -> getTid ( ) , req ) ; if ( not e . second and req != e . first -> second ) { e . first -> second -> setExpired ( ) ; e . first -> second = req ; } }
To be called when a message was sent to the node
To be called when a message was sent to the node
// Should not happen ! // Try to handle this scenario as well as we can