equal
deleted
inserted
replaced
28 #include "ns3/inet-socket-address.h" |
28 #include "ns3/inet-socket-address.h" |
29 #include "ns3/event-id.h" |
29 #include "ns3/event-id.h" |
30 #include "tcp-typedefs.h" |
30 #include "tcp-typedefs.h" |
31 #include "pending-data.h" |
31 #include "pending-data.h" |
32 #include "sequence-number.h" |
32 #include "sequence-number.h" |
33 #include "rtt-estimator.h" |
33 |
|
34 struct INetStreamSocket; |
34 |
35 |
35 namespace ns3 { |
36 namespace ns3 { |
36 |
37 |
37 class Ipv4EndPoint; |
38 class Ipv4EndPoint; |
38 class Node; |
39 class Node; |
61 NscTcpSocketImpl (const NscTcpSocketImpl& sock); |
62 NscTcpSocketImpl (const NscTcpSocketImpl& sock); |
62 virtual ~NscTcpSocketImpl (); |
63 virtual ~NscTcpSocketImpl (); |
63 |
64 |
64 void SetNode (Ptr<Node> node); |
65 void SetNode (Ptr<Node> node); |
65 void SetTcp (Ptr<NscTcpL4Protocol> tcp); |
66 void SetTcp (Ptr<NscTcpL4Protocol> tcp); |
66 void SetRtt (Ptr<RttEstimator> rtt); |
|
67 |
67 |
68 virtual enum SocketErrno GetErrno (void) const; |
68 virtual enum SocketErrno GetErrno (void) const; |
69 virtual Ptr<Node> GetNode (void) const; |
69 virtual Ptr<Node> GetNode (void) const; |
70 virtual int Bind (void); |
70 virtual int Bind (void); |
71 virtual int Bind (const Address &address); |
71 virtual int Bind (const Address &address); |
156 TracedValue<uint32_t> m_cWnd; //Congestion window |
156 TracedValue<uint32_t> m_cWnd; //Congestion window |
157 uint32_t m_ssThresh; //Slow Start Threshold |
157 uint32_t m_ssThresh; //Slow Start Threshold |
158 uint32_t m_initialCWnd; //Initial cWnd value |
158 uint32_t m_initialCWnd; //Initial cWnd value |
159 |
159 |
160 // Round trip time estimation |
160 // Round trip time estimation |
161 Ptr<RttEstimator> m_rtt; |
|
162 Time m_lastMeasuredRtt; |
161 Time m_lastMeasuredRtt; |
163 |
162 |
164 // Timer-related members |
163 // Timer-related members |
165 Time m_cnTimeout; |
164 Time m_cnTimeout; |
166 uint32_t m_cnCount; |
165 uint32_t m_cnCount; |