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

#include <cmsg.h>

Public Member Functions

 Cmsg (struct msghdr *msg)
void Add (int level, int type, int len, const uint8_t *buffer)
void Finish (void)
int GetNext (int *level, int *type, int *len, uint8_t **buffer)

Private Attributes

uint8_t * m_current
int m_len
struct msghdr * m_msg

Detailed Description

Definition at line 6 of file cmsg.h.

Constructor & Destructor Documentation

ns3::Cmsg::Cmsg ( struct msghdr *  msg)

Definition at line 7 of file cmsg.cc.

Member Function Documentation

void ns3::Cmsg::Add ( int  level,
int  type,
int  len,
const uint8_t *  buffer 
)

Definition at line 14 of file cmsg.cc.

References m_current, m_len, and m_msg.

Referenced by ns3::UnixDatagramSocketFd::DoRecvmsg().

+ Here is the caller graph for this function:

void ns3::Cmsg::Finish ( void  )

Definition at line 61 of file cmsg.cc.

References m_len, and m_msg.

Referenced by ns3::UnixDatagramSocketFd::DoRecvmsg().

+ Here is the caller graph for this function:

int ns3::Cmsg::GetNext ( int *  level,
int *  type,
int *  len,
uint8_t **  buffer 
)

Definition at line 34 of file cmsg.cc.

References m_current, and m_len.

Member Data Documentation

uint8_t* ns3::Cmsg::m_current
private

Definition at line 15 of file cmsg.h.

Referenced by Add(), and GetNext().

int ns3::Cmsg::m_len
private

Definition at line 16 of file cmsg.h.

Referenced by Add(), Finish(), and GetNext().

struct msghdr* ns3::Cmsg::m_msg
private

Definition at line 14 of file cmsg.h.

Referenced by Add(), and Finish().


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