ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::CcnClientHelper Class Reference

#include <ccn-client-helper.h>

+ Inheritance diagram for ns3::CcnClientHelper:
+ Collaboration diagram for ns3::CcnClientHelper:

Public Member Functions

 CcnClientHelper ()
void AddFile (std::string from, std::string to)
virtual ApplicationContainer Install (NodeContainer c)
- Public Member Functions inherited from ns3::DceApplicationHelper
 DceApplicationHelper ()
void AddArgument (std::string arg)
void AddArguments (std::string a0, std::string a1)
void AddArguments (std::string a0, std::string a1, std::string a2)
void AddArguments (std::string a0, std::string a1, std::string a2, std::string a3)
void AddArguments (std::string a0, std::string a1, std::string a2, std::string a3, std::string a4)
void AddArguments (std::string a0, std::string a1, std::string a2, std::string a3, std::string a4, std::string a5)
void AddArguments (std::string a0, std::string a1, std::string a2, std::string a3, std::string a4, std::string a5, std::string a6)
void AddArguments (std::string a0, std::string a1, std::string a2, std::string a3, std::string a4, std::string a5, std::string a6, std::string a7)
void AddEnvironment (std::string name, std::string value)
void ParseArguments (std::string args)
void ResetArguments (void)
void ResetEnvironment (void)
void SetBinary (std::string filename)
void SetEgid (uid_t i)
void SetEuid (uid_t i)
void SetFinishedCallback (Callback< void, uint16_t, int > cb)
void SetGid (uid_t i)
void SetStackSize (uint32_t stackSize)
void SetStdinFile (std::string filename)
void SetUid (uid_t i)

Private Member Functions

void CopyFile (std::string from, std::string to)
void CopyRealFileToVirtual (int nodeId, std::string from, std::string to)
void CreateKeystore ()
std::string GetKeystoreDir (void)
std::string GetKeystoreTemplate (void)

Private Attributes

std::vector< std::pair
< std::string, std::string > > 
m_files

Detailed Description

Definition at line 10 of file ccn-client-helper.h.

Constructor & Destructor Documentation

ns3::CcnClientHelper::CcnClientHelper ( )

Definition at line 13 of file ccn-client-helper.cc.

Member Function Documentation

void ns3::CcnClientHelper::AddFile ( std::string  from,
std::string  to 
)

Definition at line 158 of file ccn-client-helper.cc.

References m_files.

void ns3::CcnClientHelper::CopyFile ( std::string  from,
std::string  to 
)
private

Definition at line 75 of file ccn-client-helper.cc.

Referenced by CopyRealFileToVirtual(), and Install().

+ Here is the caller graph for this function:

void ns3::CcnClientHelper::CopyRealFileToVirtual ( int  nodeId,
std::string  from,
std::string  to 
)
private

Definition at line 163 of file ccn-client-helper.cc.

References CopyFile(), and ns3::UtilsEnsureAllDirectoriesExist().

Referenced by Install().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::CcnClientHelper::CreateKeystore ( )
private

Definition at line 85 of file ccn-client-helper.cc.

References GetKeystoreDir().

Referenced by Install().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ns3::CcnClientHelper::GetKeystoreDir ( void  )
private

Definition at line 56 of file ccn-client-helper.cc.

References ns3::UtilsEnsureAllDirectoriesExist().

Referenced by CreateKeystore(), and GetKeystoreTemplate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ns3::CcnClientHelper::GetKeystoreTemplate ( void  )
private

Definition at line 65 of file ccn-client-helper.cc.

References GetKeystoreDir().

Referenced by Install().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ApplicationContainer ns3::CcnClientHelper::Install ( NodeContainer  c)
virtual

Install the configured application into node.

Parameters
cNodeContainer that run this application.

Reimplemented from ns3::DceApplicationHelper.

Definition at line 18 of file ccn-client-helper.cc.

References CopyFile(), CopyRealFileToVirtual(), CreateKeystore(), GetKeystoreTemplate(), m_files, ns3::UtilsEnsureAllDirectoriesExist(), and ns3::UtilsEnsureDirectoryExists().

+ Here is the call graph for this function:

Member Data Documentation

std::vector<std::pair <std::string, std::string> > ns3::CcnClientHelper::m_files
private

Definition at line 22 of file ccn-client-helper.h.

Referenced by AddFile(), and Install().


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