opendht-2.1.4/src/dht_proxy_client.cpp
/**
 * Stop any put/announce operation at the given location,
 * for the value with the given id.
 */
Stop any put/announce operation at the given location,
for the value with the given id.
Stop any put / announce operation at the given location for the value with the given id .
bool
DhtProxyClient::cancelPut(const InfoHash& key, const Value::Id& id)
{
    auto search = searches_.find(key);
    if (search == searches_.end())
        return false;
    if (logger_)
        logger_->d("[proxy:client] [put] [search %s] cancel", key.to_c_str());
    return search->second.puts.erase(id) > 0;
}
bool DhtProxyClient :: cancelPut ( const InfoHash & key , const Value :: Id & id ) { auto search = searches_ . find ( key ) ; if ( search == searches_ . end ( ) ) return false ; if ( logger_ ) logger_ -> d ( " " , key . to_c_str ( ) ) ; return search -> second . puts . erase ( id ) > 0 ; }
Stop any put/announce operation at the given location,
 for the value with the given id.
Stop any put / announce operation at the given location for the value with the given id .