25 #include "ns3/assert.h" 
   27 #include "ns3/header.h" 
   28 #include "ns3/simulator.h" 
   30 #include "ns3/address-utils.h" 
   57   for (i = 0; i < 64; i++)
 
   61   for (i = 0; i < 128; i++)
 
  252   for (i = 0; i < 
OP_END; i++)
 
  267     .SetGroupName (
"Internet-Apps")
 
  280   os << 
"(type=" << 
m_op << 
")";
 
  355   uint32_t len, clen = start.
GetSize ();
 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
 
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer. 
 
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer. 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
uint32_t ReadNtohU32(void)
 
iterator in a Buffer instance 
 
a polymophic address class 
 
double GetSeconds(void) const 
Get an approximation of the time stored in this instance in the indicated unit. 
 
NS_ASSERT_MSG(false,"Ipv4AddressGenerator::MaskToIndex(): Impossible")
 
void WriteU16(uint16_t data)
 
void WriteHtonU16(uint16_t data)
 
uint8_t GetLength(void) const 
Get the length of the underlying address. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
uint32_t CopyFrom(const uint8_t *buffer, uint8_t len)
 
void Read(uint8_t *buffer, uint32_t size)
 
static Time Now(void)
Return the current simulation virtual time. 
 
void WriteHtonU32(uint32_t data)
 
Ipv4 addresses are stored in host order in this class. 
 
uint32_t CopyTo(uint8_t buffer[MAX_SIZE]) const 
Copy the address bytes into a buffer. 
 
void WriteU8(uint8_t data)
 
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN. 
 
void Write(uint8_t const *buffer, uint32_t size)
 
uint16_t ReadNtohU16(void)
 
void WriteU32(uint32_t data)
 
uint32_t GetSize(void) const 
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
Set the parent TypeId.