A Discrete-Event Network Simulator
API
tcp-option-sack-permitted.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 Adrian Sai-wah Tam
4  * Copyright (c) 2015 ResiliNets, ITTC, University of Kansas
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation;
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Original Author: Adrian Sai-wah Tam <adrian.sw.tam@gmail.com>
20  * Documentation, test cases: Truc Anh N. Nguyen <annguyen@ittc.ku.edu>
21  * ResiliNets Research Group http://wiki.ittc.ku.edu/resilinets
22  * The University of Kansas
23  * James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
24  */
25 
26 #ifndef TCP_OPTION_SACK_PERMITTED_H
27 #define TCP_OPTION_SACK_PERMITTED_H
28 
29 #include "ns3/tcp-option.h"
30 
31 namespace ns3 {
32 
43 {
44 public:
49  static TypeId GetTypeId (void);
50  virtual TypeId GetInstanceTypeId (void) const;
51 
53  virtual ~TcpOptionSackPermitted ();
54 
55  virtual void Print (std::ostream &os) const;
56  virtual void Serialize (Buffer::Iterator start) const;
57  virtual uint32_t Deserialize (Buffer::Iterator start);
58 
59  virtual uint8_t GetKind (void) const;
60  virtual uint32_t GetSerializedSize (void) const;
61 };
62 
63 } // namespace ns3
64 
65 #endif /* TCP_OPTION_SACK_PERMITTED */
virtual void Print(std::ostream &os) const
Print the Option contents.
def start()
Definition: core.py:1844
iterator in a Buffer instance
Definition: buffer.h:98
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
Defines the TCP option of kind 4 (selective acknowledgment permitted option) as in RFC 2018 ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
Get the type ID.
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.
Base class for all kinds of TCP options.
Definition: tcp-option.h:36
a unique identifier for an interface.
Definition: type-id.h:58
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.