46     .AddConstructor<TcpOptionEnd> ()
 
   81   uint8_t readKind = i.
ReadU8 ();
 
  117     .AddConstructor<TcpOptionNOP> ()
 
  152   uint8_t readKind = i.
ReadU8 ();
 
  187     .AddConstructor<TcpOptionMSS> ()
 
  201   os << 
"MSS:" << 
m_mss;
 
  224   uint8_t readKind = i.
ReadU8 ();
 
  231   uint8_t size = i.
ReadU8 ();
 
virtual uint32_t GetSerializedSize(void) const 
Returns number of bytes required for Option serialization. 
void SetMSS(uint16_t mss)
Set the Maximum Segment Size stored in the Option. 
virtual void Serialize(Buffer::Iterator start) const 
Serialize the Option to a buffer iterator. 
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system. 
virtual uint32_t GetSerializedSize(void) const 
Returns number of bytes required for Option serialization. 
Defines the TCP option of kind 1 (no operation) as in RFC 793 
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator. 
virtual uint8_t GetKind(void) const 
Get the `kind' (as in RFC 793) of this option. 
virtual void Print(std::ostream &os) const 
Print the Option contents. 
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
virtual uint32_t GetSerializedSize(void) const 
Returns number of bytes required for Option serialization. 
virtual uint8_t GetKind(void) const 
Get the `kind' (as in RFC 793) of this option. 
iterator in a Buffer instance 
uint16_t GetMSS(void) const 
Get the Maximum Segment Size stored in the Option. 
virtual void Serialize(Buffer::Iterator start) const 
Serialize the Option to a buffer iterator. 
virtual TypeId GetInstanceTypeId(void) const 
Implement the GetInstanceTypeId method defined in ObjectBase. 
void WriteHtonU16(uint16_t data)
uint16_t m_mss
maximum segment size 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
static TypeId GetTypeId(void)
Get the type ID. 
virtual TypeId GetInstanceTypeId(void) const 
Implement the GetInstanceTypeId method defined in ObjectBase. 
virtual void Print(std::ostream &os) const 
Print the Option contents. 
virtual uint8_t GetKind(void) const 
Get the `kind' (as in RFC 793) of this option. 
virtual void Serialize(Buffer::Iterator start) const 
Serialize the Option to a buffer iterator. 
static TypeId GetTypeId(void)
Get the type ID. 
void WriteU8(uint8_t data)
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN. 
static TypeId GetTypeId(void)
Get the type ID. 
Defines the TCP option of kind 2 (maximum segment size) as in RFC 793 
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator. 
Base class for all kinds of TCP options. 
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator. 
virtual TypeId GetInstanceTypeId(void) const 
Implement the GetInstanceTypeId method defined in ObjectBase. 
uint16_t ReadNtohU16(void)
a unique identifier for an interface. 
TypeId SetParent(TypeId tid)
virtual void Print(std::ostream &os) const 
Print the Option contents.