20 #ifndef TCPOPTIONRFC793_H
21 #define TCPOPTIONRFC793_H
23 #include "ns3/tcp-option.h"
45 virtual void Print (std::ostream &os)
const;
49 virtual uint8_t
GetKind (
void)
const;
70 virtual void Print (std::ostream &os)
const;
74 virtual uint8_t
GetKind (
void)
const;
94 virtual void Print (std::ostream &os)
const;
98 virtual uint8_t
GetKind (
void)
const;
105 uint16_t
GetMSS (
void)
const;
110 void SetMSS (uint16_t mss);
118 #endif // TCPOPTIONRFC793_H
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.
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.
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
Get the most derived TypeId for this Object.
Defines the TCP option of kind 0 (end of option list) as in RFC 793
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
Get the most derived TypeId for this Object.
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.
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
Get the most derived TypeId for this Object.
a unique identifier for an interface.
virtual void Print(std::ostream &os) const
Print the Option contents.