A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tcp-rfc793.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 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
*/
20
21
#ifndef TCP_RFC793_H
22
#define TCP_RFC793_H
23
24
#include "
tcp-socket-base.h
"
25
26
namespace
ns3
{
27
39
class
TcpRfc793
:
public
TcpSocketBase
40
{
41
public
:
46
static
TypeId
GetTypeId
(
void
);
50
TcpRfc793
(
void
);
55
TcpRfc793
(
const
TcpRfc793
& sock);
56
virtual
~TcpRfc793
(
void
);
57
58
protected
:
59
virtual
Ptr<TcpSocketBase>
Fork
();
// Call CopyObject<TcpRfc793> to clone me
60
virtual
void
DupAck
(
const
TcpHeader
& t, uint32_t count);
61
virtual
void
SetInitialSSThresh
(uint32_t threshold);
62
virtual
uint32_t
GetInitialSSThresh
(
void
)
const
;
63
virtual
void
SetInitialCwnd
(uint32_t cwnd);
64
virtual
uint32_t
GetInitialCwnd
(
void
)
const
;
65
66
virtual
uint32_t
Window
(
void
);
67
virtual
void
ScaleSsThresh
(uint8_t scaleFactor);
68
69
};
70
71
}
// namespace ns3
72
73
#endif
/* TCP_RFC793_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::TcpRfc793::SetInitialSSThresh
virtual void SetInitialSSThresh(uint32_t threshold)
Set the initial Slow Start Threshold.
Definition:
tcp-rfc793.cc:67
ns3::TcpRfc793::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
tcp-rfc793.cc:31
ns3::TcpRfc793::GetInitialCwnd
virtual uint32_t GetInitialCwnd(void) const
Get the initial Congestion Window.
Definition:
tcp-rfc793.cc:86
ns3::TcpRfc793
An implementation of a stream socket using TCP.
Definition:
tcp-rfc793.h:39
ns3::TcpRfc793::~TcpRfc793
virtual ~TcpRfc793(void)
Definition:
tcp-rfc793.cc:51
ns3::TcpRfc793::Window
virtual uint32_t Window(void)
Return the max possible number of unacked bytes.
Definition:
tcp-rfc793.cc:93
ns3::TcpRfc793::DupAck
virtual void DupAck(const TcpHeader &t, uint32_t count)
Received dupack (duplicate ACK)
Definition:
tcp-rfc793.cc:62
ns3::TcpSocketBase
A base class for implementation of a stream socket using TCP.
Definition:
tcp-socket-base.h:91
ns3::TcpRfc793::ScaleSsThresh
virtual void ScaleSsThresh(uint8_t scaleFactor)
Scale the initial SsThresh value to the correct one.
Definition:
tcp-rfc793.cc:100
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpHeader
Header for the Transmission Control Protocol.
Definition:
tcp-header.h:44
ns3::TcpRfc793::Fork
virtual Ptr< TcpSocketBase > Fork()
Call CopyObject<> to clone me.
Definition:
tcp-rfc793.cc:56
ns3::TcpRfc793::SetInitialCwnd
virtual void SetInitialCwnd(uint32_t cwnd)
Set the initial Congestion Window.
Definition:
tcp-rfc793.cc:80
tcp-socket-base.h
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:57
ns3::TcpRfc793::GetInitialSSThresh
virtual uint32_t GetInitialSSThresh(void) const
Get the initial Slow Start Threshold.
Definition:
tcp-rfc793.cc:73
ns3::TcpRfc793::TcpRfc793
TcpRfc793(void)
Create an unbound tcp socket.
Definition:
tcp-rfc793.cc:41
src
internet
model
tcp-rfc793.h
Generated on Wed May 13 2015 14:59:18 for ns-3 by
1.8.9.1