20 |
20 |
21 #include "ns3/object.h" |
21 #include "ns3/object.h" |
22 #include "ns3/log.h" |
22 #include "ns3/log.h" |
23 #include "ns3/uinteger.h" |
23 #include "ns3/uinteger.h" |
24 #include "ns3/double.h" |
24 #include "ns3/double.h" |
|
25 #include "ns3/boolean.h" |
25 #include "ns3/trace-source-accessor.h" |
26 #include "ns3/trace-source-accessor.h" |
26 #include "ns3/nstime.h" |
27 #include "ns3/nstime.h" |
27 #include "tcp-socket.h" |
28 #include "tcp-socket.h" |
28 |
29 |
29 NS_LOG_COMPONENT_DEFINE ("TcpSocket"); |
30 NS_LOG_COMPONENT_DEFINE ("TcpSocket"); |
91 "Number of packets to wait before sending a TCP ack", |
92 "Number of packets to wait before sending a TCP ack", |
92 UintegerValue (2), |
93 UintegerValue (2), |
93 MakeUintegerAccessor (&TcpSocket::GetDelAckMaxCount, |
94 MakeUintegerAccessor (&TcpSocket::GetDelAckMaxCount, |
94 &TcpSocket::SetDelAckMaxCount), |
95 &TcpSocket::SetDelAckMaxCount), |
95 MakeUintegerChecker<uint32_t> ()) |
96 MakeUintegerChecker<uint32_t> ()) |
|
97 .AddAttribute ("TcpNoDelay", "Set to true to disable Nagle's algorithm", |
|
98 BooleanValue (true), |
|
99 MakeBooleanAccessor (&TcpSocket::GetTcpNoDelay, |
|
100 &TcpSocket::SetTcpNoDelay), |
|
101 MakeBooleanChecker ()) |
96 .AddAttribute ("PersistTimeout", |
102 .AddAttribute ("PersistTimeout", |
97 "Persist timeout to probe for rx window", |
103 "Persist timeout to probe for rx window", |
98 TimeValue (Seconds (6)), |
104 TimeValue (Seconds (6)), |
99 MakeTimeAccessor (&TcpSocket::GetPersistTimeout, |
105 MakeTimeAccessor (&TcpSocket::GetPersistTimeout, |
100 &TcpSocket::SetPersistTimeout), |
106 &TcpSocket::SetPersistTimeout), |