42 #include "ns3/core-module.h"
43 #include "ns3/network-module.h"
44 #include "ns3/internet-module.h"
56 virtual void DoRun ();
79 socket->
Send (Create<Packet> (536));
80 socket->
Send (Create<Packet> (536));
81 socket->
Send (Create<Packet> (536));
static Ipv6Address GetLoopback()
Get the loopback address.
void HandleAccept(Ptr< Socket > s, const Address &from)
static Ipv4Address GetAny(void)
TcpEndpointBug2211TestSuite()
static void Run(void)
Run the simulation.
static Ipv6Address GetAny()
Get the "any" (::) Ipv6Address.
aggregate IP/TCP/UDP functionality to existing Nodes.
Callback< R > MakeNullCallback(void)
This test suite implements a Unit Test.
a polymophic address class
virtual int Listen(void)=0
Listen for incoming connections.
void AddTestCase(TestCase *testCase, enum TestDuration duration)
Add an individual child TestCase to this test suite.
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
void SetRecvCallback(Callback< void, Ptr< Socket > >)
Notify application when new data is available to be read.
static Ptr< Socket > CreateSocket(Ptr< Node > node, TypeId tid)
This method wraps the creation of sockets that is performed on a given node by a SocketFactory specif...
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy().
static TypeId GetTypeId(void)
Get the type ID.
virtual int Connect(const Address &address)=0
Initiate a connection to a remote host.
void Recv(Ptr< Socket > socket)
virtual int Bind(const Address &address)=0
Allocate a local endpoint for this socket.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::TcpEndpointBug2211TestSuite g_TcpEndPoint2211TestSuite
void Install(std::string nodeName) const
Aggregate implementations of the ns3::Ipv4, ns3::Ipv6, ns3::Udp, and ns3::Tcp classes onto the provid...
static Ipv4Address GetLoopback(void)
void SetAcceptCallback(Callback< bool, Ptr< Socket >, const Address & > connectionRequest, Callback< void, Ptr< Socket >, const Address & > newConnectionCreated)
Accept connection requests from remote hosts.
void HandleConnect(Ptr< Socket > socket)
TcpEndPointBug2211Test(std::string desc, bool ipVersion)
virtual void DoRun()
Implementation to actually run this TestCase.
void SetConnectCallback(Callback< void, Ptr< Socket > > connectionSucceeded, Callback< void, Ptr< Socket > > connectionFailed)
Specify callbacks to allow the caller to determine if the connection succeeds of fails.
virtual int Send(Ptr< Packet > p, uint32_t flags)=0
Send data (or dummy data) to the remote host.
virtual int Close(void)=0
Close a socket.
a unique identifier for an interface.
virtual uint32_t GetRxAvailable(void) const =0
Return number of bytes which can be returned from one or multiple calls to Recv.