56 .SetGroupName (
"Internet")
65 return CopyObject<TcpSocketHalfAck> (
this);
72 static uint32_t times = 1;
137 "Notified more data than application sent");
Socket that the 50% of the times saves the entire packet in the buffer, while in the other 50% saves ...
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
uint32_t GetPktSize() const
Get the application packet size.
Class for inserting callbacks special points of the flow of TCP sockets.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetAppPktSize(uint32_t pktSize)
Set app packet size.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
ns3::TcpDataSentCbTestSuite g_tcpDataSentCbTestSuite
This test suite implements a Unit Test.
TcpDataSentCbTestCase(const std::string &desc, uint32_t size, uint32_t packets)
TcpSocketHalfAck(const TcpSocketHalfAck &other)
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
virtual Ptr< TcpSocketMsgBase > CreateReceiverSocket(Ptr< Node > node)
Create and install the socket to install on the receiver.
virtual Ptr< TcpSocketMsgBase > CreateSocket(Ptr< Node > node, TypeId socketType, TypeId congControl)
Create a socket.
virtual void DataSent(uint32_t size, SocketWho who)
Notifying application for sent data.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
virtual void FinalChecks()
Performs the (eventual) final checks through test asserts.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void RemoveAtEnd(uint32_t size)
Remove size bytes from the end of the current packet.
void SetAppPktCount(uint32_t pktCount)
Set app packet count.
static TypeId GetTypeId(void)
SocketWho
Used as parameter of methods, specifies on what node the caller is interested (e.g.
virtual Ptr< TcpSocketBase > Fork()
Call CopyObject<> to clone me.
General infrastructure for TCP testing.
virtual void ConfigureEnvironment(void)
Change the configuration of the evironment.
uint32_t GetPktCount() const
Get the number of application packets.
virtual void ConfigureEnvironment()
Change the configuration of the evironment.
virtual void ReceivedData(Ptr< Packet > packet, const TcpHeader &tcpHeader)
Recv of a data, put into buffer, call L7 to get it if necessary.
virtual void ReceivedData(Ptr< Packet > packet, const TcpHeader &tcpHeader)
Recv of a data, put into buffer, call L7 to get it if necessary.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
TypeId m_congControlTypeId
Congestion control.