A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
tcp-option-sack-permitted.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Adrian Sai-wah Tam
3
* Copyright (c) 2015 ResiliNets, ITTC, University of Kansas
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Original Author: Adrian Sai-wah Tam <adrian.sw.tam@gmail.com>
19
* Documentation, test cases: Truc Anh N. Nguyen <annguyen@ittc.ku.edu>
20
* ResiliNets Research Group https://resilinets.org/
21
* The University of Kansas
22
* James P.G. Sterbenz <jpgs@ittc.ku.edu>, director
23
*/
24
25
#ifndef TCP_OPTION_SACK_PERMITTED_H
26
#define TCP_OPTION_SACK_PERMITTED_H
27
28
#include "
tcp-option.h
"
29
30
namespace
ns3
31
{
32
42
class
TcpOptionSackPermitted
:
public
TcpOption
43
{
44
public
:
49
static
TypeId
GetTypeId
();
50
TypeId
GetInstanceTypeId
()
const override
;
51
52
TcpOptionSackPermitted
();
53
~TcpOptionSackPermitted
()
override
;
54
55
void
Print
(std::ostream& os)
const override
;
56
void
Serialize
(
Buffer::Iterator
start
)
const override
;
57
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
58
59
uint8_t
GetKind
()
const override
;
60
uint32_t
GetSerializedSize
()
const override
;
61
};
62
63
}
// namespace ns3
64
65
#endif
/* TCP_OPTION_SACK_PERMITTED */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::TcpOption
Base class for all kinds of TCP options.
Definition:
tcp-option.h:38
ns3::TcpOptionSackPermitted
Defines the TCP option of kind 4 (selective acknowledgment permitted option) as in RFC 2018
Definition:
tcp-option-sack-permitted.h:43
ns3::TcpOptionSackPermitted::Serialize
void Serialize(Buffer::Iterator start) const override
Serialize the Option to a buffer iterator.
Definition:
tcp-option-sack-permitted.cc:73
ns3::TcpOptionSackPermitted::Deserialize
uint32_t Deserialize(Buffer::Iterator start) override
Deserialize the Option from a buffer iterator.
Definition:
tcp-option-sack-permitted.cc:81
ns3::TcpOptionSackPermitted::~TcpOptionSackPermitted
~TcpOptionSackPermitted() override
Definition:
tcp-option-sack-permitted.cc:40
ns3::TcpOptionSackPermitted::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
tcp-option-sack-permitted.cc:45
ns3::TcpOptionSackPermitted::Print
void Print(std::ostream &os) const override
Print the Option contents.
Definition:
tcp-option-sack-permitted.cc:61
ns3::TcpOptionSackPermitted::TcpOptionSackPermitted
TcpOptionSackPermitted()
Definition:
tcp-option-sack-permitted.cc:35
ns3::TcpOptionSackPermitted::GetSerializedSize
uint32_t GetSerializedSize() const override
Returns number of bytes required for Option serialization.
Definition:
tcp-option-sack-permitted.cc:67
ns3::TcpOptionSackPermitted::GetKind
uint8_t GetKind() const override
Get the ‘kind’ (as in RFC 793) of this option.
Definition:
tcp-option-sack-permitted.cc:102
ns3::TcpOptionSackPermitted::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
tcp-option-sack-permitted.cc:55
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:520
tcp-option.h
src
internet
model
tcp-option-sack-permitted.h
Generated on Sun Mar 3 2024 17:10:59 for ns-3 by
1.9.1