opendht-2.1.4/src/dhtrunner.cpp
/**
 * Updates the push notification device token
 */
Updates the push notification device token
Updates the push notification device token
void
DhtRunner::setPushNotificationToken(const std::string& token) {
    std::lock_guard<std::mutex> lck(dht_mtx);
#if defined(OPENDHT_PROXY_CLIENT) && defined(OPENDHT_PUSH_NOTIFICATIONS)
    config_.push_token = token;
    if (dht_via_proxy_)
        dht_via_proxy_->setPushNotificationToken(token);
#else
    (void) token;
#endif
}
void DhtRunner :: setPushNotificationToken ( const std :: string & token ) { std :: lock_guard < std :: mutex > lck ( dht_mtx ) ; #if defined ( OPENDHT_PROXY_CLIENT ) && defined ( OPENDHT_PUSH_NOTIFICATIONS ) config_ . push_token = token ; if ( dht_via_proxy_ ) dht_via_proxy_ -> setPushNotificationToken ( token ) ; #else ( void ) token ; #endif }
Updates the push notification device token
Updates the push notification device token