NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::PrivilegeHelper Class Reference

#include <privilege-helper.hpp>


class  Error
 represents a serious seteuid/gid failure More...

Static Public Member Functions

static void initialize (const std::string &userName, const std::string &groupName)
static void drop ()
static void runElevated (function< void()> f)

Detailed Description

Definition at line 35 of file privilege-helper.hpp.

Member Function Documentation

§ initialize()

void nfd::PrivilegeHelper::initialize ( const std::string &  userName,
const std::string &  groupName 

Definition at line 45 of file privilege-helper.cpp.

References NFD_LOG_TRACE.

Referenced by nfd::general::onConfig(), and nfd::PrivilegeHelper::Error::what().

§ drop()

void nfd::PrivilegeHelper::drop ( )

§ runElevated()

void nfd::PrivilegeHelper::runElevated ( function< void()>  f)

Definition at line 196 of file privilege-helper.cpp.

References drop().

Referenced by nfd::PrivilegeHelper::Error::what().

The documentation for this class was generated from the following files: