20 #define __STDC_LIMIT_MACROS
24 #include "ns3/boolean.h"
25 #include "ns3/double.h"
27 #include "ns3/nstime.h"
28 #include "ns3/object.h"
29 #include "ns3/trace-source-accessor.h"
30 #include "ns3/uinteger.h"
59 .SetGroupName(
"Internet")
62 "TcpSocket maximum transmit buffer size (bytes)",
65 MakeUintegerChecker<uint32_t>())
68 "TcpSocket maximum receive buffer size (bytes)",
71 MakeUintegerChecker<uint32_t>())
74 "TCP maximum segment size in bytes (may be adjusted based on MTU discovery)",
77 MakeUintegerChecker<uint32_t>())
78 .AddAttribute(
"InitialSlowStartThreshold",
79 "TCP initial slow start threshold (bytes)",
83 MakeUintegerChecker<uint32_t>())
86 "TCP initial congestion window size (segments)",
89 MakeUintegerChecker<uint32_t>())
90 .AddAttribute(
"ConnTimeout",
91 "TCP retransmission timeout when opening connection (seconds)",
97 "Number of connection attempts (SYN retransmissions) before "
101 MakeUintegerChecker<uint32_t>())
104 "Number of data retransmission attempts",
107 MakeUintegerChecker<uint32_t>())
110 "Timeout value for TCP delayed acks, in seconds",
116 "Number of packets to wait before sending a TCP ack",
119 MakeUintegerChecker<uint32_t>())
120 .AddAttribute(
"TcpNoDelay",
121 "Set to true to disable Nagle's algorithm",
127 "Persist timeout to probe for rx window",
A low-level Socket API based loosely on the BSD Socket API.
virtual void SetInitialSSThresh(uint32_t threshold)=0
Set the initial Slow Start Threshold.
virtual uint32_t GetDataRetries() const =0
Get the number of data transmission retries before giving up.
virtual uint32_t GetRcvBufSize() const =0
Get the receive buffer size.
virtual uint32_t GetSndBufSize() const =0
Get the send buffer size.
virtual void SetRcvBufSize(uint32_t size)=0
Set the receive buffer size.
static const char *const TcpStateName[TcpSocket::LAST_STATE]
Literal names of TCP states for use in log messages.
virtual Time GetPersistTimeout() const =0
Get the timeout for persistent connection.
virtual uint32_t GetInitialCwnd() const =0
Get the initial Congestion Window.
virtual uint32_t GetDelAckMaxCount() const =0
Get the number of packet to fire an ACK before delay timeout.
virtual void SetDelAckMaxCount(uint32_t count)=0
Set the number of packet to fire an ACK before delay timeout.
virtual void SetPersistTimeout(Time timeout)=0
Set the timeout for persistent connection.
virtual Time GetDelAckTimeout() const =0
Get the time to delay an ACK.
virtual uint32_t GetSynRetries() const =0
Get the number of connection retries before giving up.
virtual uint32_t GetInitialSSThresh() const =0
Get the initial Slow Start Threshold.
virtual void SetSegSize(uint32_t size)=0
Set the segment size.
virtual void SetSndBufSize(uint32_t size)=0
Set the send buffer size.
virtual uint32_t GetSegSize() const =0
Get the segment size.
virtual void SetDataRetries(uint32_t retries)=0
Set the number of data transmission retries before giving up.
static TypeId GetTypeId()
Get the type ID.
virtual void SetDelAckTimeout(Time timeout)=0
Set the time to delay an ACK.
virtual void SetConnTimeout(Time timeout)=0
Set the connection timeout.
virtual void SetTcpNoDelay(bool noDelay)=0
Enable/Disable Nagle's algorithm.
virtual void SetInitialCwnd(uint32_t cwnd)=0
Set the initial Congestion Window.
virtual bool GetTcpNoDelay() const =0
Check if Nagle's algorithm is enabled or not.
virtual void SetSynRetries(uint32_t count)=0
Set the number of connection retries before giving up.
virtual Time GetConnTimeout() const =0
Get the connection timeout.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Hold an unsigned integer type.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
@ LAST_STATE
Last state, used only in debug messages
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)