A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
internet
model
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
42
class
TcpOptionSackPermitted
:
public
TcpOption
43
{
44
public
:
49
static
TypeId
GetTypeId
(
void
);
50
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
51
52
TcpOptionSackPermitted
();
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 */
ns3::TcpOptionSackPermitted::Print
virtual void Print(std::ostream &os) const
Print the Option contents.
Definition:
tcp-option-sack-permitted.cc:62
visualizer.core.start
def start()
Definition:
core.py:1844
ns3::TcpOptionSackPermitted::TcpOptionSackPermitted
TcpOptionSackPermitted()
Definition:
tcp-option-sack-permitted.cc:35
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::TcpOptionSackPermitted::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
Definition:
tcp-option-sack-permitted.cc:82
ns3::TcpOptionSackPermitted::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
Definition:
tcp-option-sack-permitted.cc:68
ns3::TcpOptionSackPermitted
Defines the TCP option of kind 4 (selective acknowledgment permitted option) as in RFC 2018 ...
Definition:
tcp-option-sack-permitted.h:42
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpOptionSackPermitted::~TcpOptionSackPermitted
virtual ~TcpOptionSackPermitted()
Definition:
tcp-option-sack-permitted.cc:40
ns3::TcpOptionSackPermitted::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-option-sack-permitted.cc:45
ns3::TcpOptionSackPermitted::GetKind
virtual uint8_t GetKind(void) const
Get the ‘kind’ (as in RFC 793) of this option.
Definition:
tcp-option-sack-permitted.cc:103
ns3::TcpOptionSackPermitted::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the Option to a buffer iterator.
Definition:
tcp-option-sack-permitted.cc:74
ns3::TcpOption
Base class for all kinds of TCP options.
Definition:
tcp-option.h:36
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpOptionSackPermitted::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
tcp-option-sack-permitted.cc:56
Generated on Wed Nov 7 2018 10:01:56 for ns-3 by
1.8.14