25 #include "ns3/object.h"
26 #include "ns3/buffer.h"
27 #include "ns3/object-factory.h"
71 virtual void Print (std::ostream &os)
const = 0;
89 virtual uint8_t
GetKind (
void)
const = 0;
135 virtual void Print (std::ostream &os)
const;
139 virtual uint8_t
GetKind (
void)
const;
virtual uint8_t GetKind(void) const
Get the `kind' (as in RFC 793) of this option.
Smart pointer class similar to boost::intrusive_ptr.
not a standardized value; for unknown recv'd options
virtual void Print(std::ostream &os) const =0
Print the Option contents.
iterator in a Buffer instance
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the Option from a buffer iterator.
virtual void Print(std::ostream &os) const
Print the Option contents.
virtual ~TcpOptionUnknown()
virtual void Serialize(Buffer::Iterator start) const
Serialize the Option to a buffer iterator.
Kind
The option Kind, as defined in the respective RFCs.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
uint8_t m_content[40]
The option data.
virtual void Serialize(Buffer::Iterator start) const =0
Serialize the Option to a buffer iterator.
uint32_t m_size
The unknown option size.
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
static bool IsKindKnown(uint8_t kind)
Check if the option is implemented.
static TypeId GetTypeId(void)
Get the type ID.
uint8_t m_kind
The unknown option kind.
virtual uint8_t GetKind(void) const =0
Get the `kind' (as in RFC 793) of this option.
Base class for all kinds of TCP options.
A base class which provides memory management and object aggregation.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
a unique identifier for an interface.
static Ptr< TcpOption > CreateOption(uint8_t kind)
Creates an option.
static TypeId GetTypeId(void)
Get the type ID.
virtual uint32_t GetSerializedSize(void) const =0
Returns number of bytes required for Option serialization.