A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
internet
model
tcp-option-winscale.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
*
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
* Author: Adrian Sai-wah Tam <adrian.sw.tam@gmail.com>
19
* Documentation, test cases: Natale Patriciello <natale.patriciello@gmail.com>
20
*/
21
22
#ifndef TCP_OPTION_WINSCALE_H
23
#define TCP_OPTION_WINSCALE_H
24
25
#include "ns3/tcp-option.h"
26
27
namespace
ns3
{
28
50
class
TcpOptionWinScale
:
public
TcpOption
51
{
52
public
:
57
static
TypeId
GetTypeId
(
void
);
58
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
59
60
TcpOptionWinScale
();
61
virtual
~TcpOptionWinScale
();
62
63
virtual
void
Print
(std::ostream &os)
const
;
64
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
65
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start
);
66
67
virtual
uint8_t
GetKind
(
void
)
const
;
68
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
69
74
uint8_t
GetScale
(
void
)
const
;
75
83
void
SetScale
(uint8_t scale);
84
85
protected
:
86
uint8_t
m_scale
;
87
};
88
89
}
// namespace ns3
90
91
#endif
/* TCP_OPTION_WINSCALE */
ns3::TcpOptionWinScale::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
tcp-option-winscale.cc:53
visualizer.core.start
def start()
Definition:
core.py:1844
ns3::TcpOptionWinScale::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the Option from a buffer iterator.
Definition:
tcp-option-winscale.cc:80
ns3::TcpOptionWinScale
Defines the TCP option of kind 3 (window scale option) as in RFC 1323
Definition:
tcp-option-winscale.h:50
ns3::TcpOptionWinScale::Print
virtual void Print(std::ostream &os) const
Print the Option contents.
Definition:
tcp-option-winscale.cc:59
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::TcpOptionWinScale::TcpOptionWinScale
TcpOptionWinScale()
Definition:
tcp-option-winscale.cc:31
ns3::TcpOptionWinScale::GetKind
virtual uint8_t GetKind(void) const
Get the ‘kind’ (as in RFC 793) of this option.
Definition:
tcp-option-winscale.cc:101
ns3::TcpOptionWinScale::~TcpOptionWinScale
virtual ~TcpOptionWinScale()
Definition:
tcp-option-winscale.cc:37
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpOptionWinScale::SetScale
void SetScale(uint8_t scale)
Set the scale option.
Definition:
tcp-option-winscale.cc:115
ns3::TcpOptionWinScale::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Returns number of bytes required for Option serialization.
Definition:
tcp-option-winscale.cc:65
ns3::TcpOption
Base class for all kinds of TCP options.
Definition:
tcp-option.h:36
ns3::TcpOptionWinScale::m_scale
uint8_t m_scale
Window scaling in number of bit shift.
Definition:
tcp-option-winscale.h:86
ns3::TcpOptionWinScale::GetScale
uint8_t GetScale(void) const
Get the scale value (uint8_t)
Definition:
tcp-option-winscale.cc:107
ns3::TcpOptionWinScale::Serialize
virtual void Serialize(Buffer::Iterator start) const
Serialize the Option to a buffer iterator.
Definition:
tcp-option-winscale.cc:71
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::TcpOptionWinScale::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-option-winscale.cc:42
Generated on Wed Nov 7 2018 10:01:56 for ns-3 by
1.8.14