opendht-2.1.4/src/dht_proxy_client.cpp
/**
 * Get data currently being put at the given hash with the given id.
 */
Get data currently being put at the given hash with the given id.
Get data currently being put at the given hash with the given id .
Sp<Value>
DhtProxyClient::getPut(const InfoHash& key, const Value::Id& id) const {
    auto search = searches_.find(key);
    if (search == searches_.end())
        return {};
    auto val = search->second.puts.find(id);
    if (val == search->second.puts.end())
        return {};
    return val->second.value;
}
Sp < Value > DhtProxyClient :: getPut ( const InfoHash & key , const Value :: Id & id ) const { auto search = searches_ . find ( key ) ; if ( search == searches_ . end ( ) ) return { } ; auto val = search -> second . puts . find ( id ) ; if ( val == search -> second . puts . end ( ) ) return { } ; return val -> second . value ; }
Get data currently being put at the given hash with the given id.
Get data currently being put at the given hash with the given id .