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

Manages data attached to a Node usable by DCE such as uname result random context ... More...

#include <dce-node-context.h>

+ Collaboration diagram for ns3::DceNodeContext:

Public Member Functions

 DceNodeContext ()
virtual ~DceNodeContext ()
virtual TypeId GetInstanceTypeId (void) const
int RandomRead (void *buf, size_t count)
int UName (struct utsname *buf)

Static Public Member Functions

static Ptr< DceNodeContextGetNodeContext ()
static TypeId GetTypeId (void)

Private Member Functions

uint8_t GetNextRnd ()

Private Attributes

std::string m_hardId
std::string m_nodeName
RandomVariable m_randomCtx
std::string m_release
uint32_t m_rndBuffer
uint8_t m_rndOffset
std::string m_sysName
std::string m_version

Detailed Description

Manages data attached to a Node usable by DCE such as uname result random context ...

Definition at line 42 of file dce-node-context.h.

Constructor & Destructor Documentation

ns3::DceNodeContext::DceNodeContext ( )

Definition at line 52 of file dce-node-context.cc.

References m_randomCtx, m_rndBuffer, and m_rndOffset.

ns3::DceNodeContext::~DceNodeContext ( )
virtual

Definition at line 59 of file dce-node-context.cc.

Member Function Documentation

TypeId ns3::DceNodeContext::GetInstanceTypeId ( void  ) const
virtual

Definition at line 48 of file dce-node-context.cc.

References GetTypeId().

+ Here is the call graph for this function:

uint8_t ns3::DceNodeContext::GetNextRnd ( )
inlineprivate

Definition at line 124 of file dce-node-context.cc.

References m_randomCtx, m_rndBuffer, and m_rndOffset.

Referenced by RandomRead().

+ Here is the caller graph for this function:

Ptr< DceNodeContext > ns3::DceNodeContext::GetNodeContext ( )
static

Definition at line 101 of file dce-node-context.cc.

References ns3::Current(), ns3::Process::manager, and ns3::Thread::process.

Referenced by dce_uname(), and ns3::UnixRandomFd::Read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TypeId ns3::DceNodeContext::GetTypeId ( void  )
static

Definition at line 40 of file dce-node-context.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

int ns3::DceNodeContext::RandomRead ( void *  buf,
size_t  count 
)

Definition at line 113 of file dce-node-context.cc.

References GetNextRnd().

+ Here is the call graph for this function:

int ns3::DceNodeContext::UName ( struct utsname *  buf)

Definition at line 64 of file dce-node-context.cc.

References m_hardId, m_nodeName, m_release, m_sysName, m_version, and ns3::UtilsGetNodeId().

+ Here is the call graph for this function:

Member Data Documentation

std::string ns3::DceNodeContext::m_hardId
private

Definition at line 64 of file dce-node-context.h.

Referenced by UName().

std::string ns3::DceNodeContext::m_nodeName
private

Definition at line 61 of file dce-node-context.h.

Referenced by UName().

RandomVariable ns3::DceNodeContext::m_randomCtx
private

Definition at line 65 of file dce-node-context.h.

Referenced by DceNodeContext(), and GetNextRnd().

std::string ns3::DceNodeContext::m_release
private

Definition at line 62 of file dce-node-context.h.

Referenced by UName().

uint32_t ns3::DceNodeContext::m_rndBuffer
private

Definition at line 66 of file dce-node-context.h.

Referenced by DceNodeContext(), and GetNextRnd().

uint8_t ns3::DceNodeContext::m_rndOffset
private

Definition at line 67 of file dce-node-context.h.

Referenced by DceNodeContext(), and GetNextRnd().

std::string ns3::DceNodeContext::m_sysName
private

Definition at line 60 of file dce-node-context.h.

Referenced by UName().

std::string ns3::DceNodeContext::m_version
private

Definition at line 63 of file dce-node-context.h.

Referenced by UName().


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