author | Tommaso Pecorella <tommaso.pecorella@unifi.it> |
Wed, 13 Aug 2014 23:46:16 +0200 | |
changeset 10855 | 7ef081ddfc7f |
parent 10652 | dc18deba4502 |
child 10968 | 2d29fee2b7b8 |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7256
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
6694 | 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 |
#include "tcp-rfc793.h" |
|
22 |
#include "ns3/log.h" |
|
23 |
||
24 |
NS_LOG_COMPONENT_DEFINE ("TcpRfc793"); |
|
25 |
||
26 |
namespace ns3 { |
|
27 |
||
10652
dc18deba4502
[doxygen] Revert r10410, r10411, r10412
Peter D. Barnes, Jr. <barnes26@llnl.gov>
parents:
10410
diff
changeset
|
28 |
NS_OBJECT_ENSURE_REGISTERED (TcpRfc793); |
6694 | 29 |
|
30 |
TypeId |
|
31 |
TcpRfc793::GetTypeId (void) |
|
32 |
{ |
|
33 |
static TypeId tid = TypeId ("ns3::TcpRfc793") |
|
34 |
.SetParent<TcpSocketBase> () |
|
35 |
.AddConstructor<TcpRfc793> () |
|
36 |
; |
|
37 |
return tid; |
|
38 |
} |
|
39 |
||
40 |
TcpRfc793::TcpRfc793 (void) |
|
41 |
{ |
|
42 |
NS_LOG_FUNCTION (this); |
|
7256
b04ba6772f8c
rerun check-style.py at default level to enforce space after function name
Tom Henderson <tomh@tomh.org>
parents:
6834
diff
changeset
|
43 |
SetDelAckMaxCount (0); // Delayed ACK is not in RFC793 |
6694 | 44 |
} |
45 |
||
46 |
TcpRfc793::TcpRfc793 (const TcpRfc793& sock) : TcpSocketBase (sock) |
|
47 |
{ |
|
48 |
} |
|
49 |
||
50 |
TcpRfc793::~TcpRfc793 (void) |
|
51 |
{ |
|
52 |
} |
|
53 |
||
54 |
Ptr<TcpSocketBase> |
|
55 |
TcpRfc793::Fork (void) |
|
56 |
{ |
|
57 |
return CopyObject<TcpRfc793> (this); |
|
58 |
} |
|
59 |
||
60 |
void |
|
61 |
TcpRfc793::DupAck (const TcpHeader& t, uint32_t count) |
|
62 |
{ |
|
63 |
} |
|
64 |
||
65 |
void |
|
10855
7ef081ddfc7f
Bug 1831 - TcpSocket SlowStartThreshold is not a TraceSource
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
10652
diff
changeset
|
66 |
TcpRfc793::SetInitialSSThresh (uint32_t threshold) |
6694 | 67 |
{ |
68 |
NS_LOG_WARN ("DoD TCP does not perform slow start"); |
|
69 |
} |
|
70 |
||
71 |
uint32_t |
|
10855
7ef081ddfc7f
Bug 1831 - TcpSocket SlowStartThreshold is not a TraceSource
Tommaso Pecorella <tommaso.pecorella@unifi.it>
parents:
10652
diff
changeset
|
72 |
TcpRfc793::GetInitialSSThresh (void) const |
6694 | 73 |
{ |
74 |
NS_LOG_WARN ("DoD TCP does not perform slow start"); |
|
75 |
return 0; |
|
76 |
} |
|
77 |
||
78 |
void |
|
79 |
TcpRfc793::SetInitialCwnd (uint32_t cwnd) |
|
80 |
{ |
|
81 |
NS_LOG_WARN ("DoD TCP does not have congestion window"); |
|
82 |
} |
|
83 |
||
84 |
uint32_t |
|
85 |
TcpRfc793::GetInitialCwnd (void) const |
|
86 |
{ |
|
87 |
NS_LOG_WARN ("DoD TCP does not have congestion window"); |
|
88 |
return 0; |
|
89 |
} |
|
90 |
||
91 |
} // namespace ns3 |