23 #include "ns3/core-module.h"    24 #include "ns3/network-module.h"    25 #include "ns3/internet-module.h"    78   virtual void DoRun ();
   101   socket->
Send (Create<Packet> (536));
   102   socket->
Send (Create<Packet> (536));
   103   socket->
Send (Create<Packet> (536));
   120   TypeId tid = TcpSocketFactory::GetTypeId ();
   134   Ptr<Socket> source = Socket::CreateSocket (node, tid);
   148   Simulator::Destroy ();
 
virtual void DoRun()
Implementation to actually run this TestCase. 
TcpEndpointBug2211TestSuite()
void HandleConnect(Ptr< Socket > socket)
Handle a connection establishment. 
bool m_v6
True to use IPv6. 
aggregate IP/TCP/UDP functionality to existing Nodes. 
TestSuite for bug 2211 - It must be used with valgrind. 
Callback< R > MakeNullCallback(void)
TcpEndPointBug2211Test(std::string desc, bool ipVersion)
Constructor. 
a polymophic address class 
void HandleAccept(Ptr< Socket > s, const Address &from)
Handle an incoming connection. 
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite. 
void Recv(Ptr< Socket > socket)
Receive a packet. 
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 TcpEndpointBug2211TestSuite g_TcpEndPoint2211TestSuite
Static variable for test initialization. 
virtual int Connect(const Address &address)=0
Initiate a connection to a remote host. 
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. 
void Install(std::string nodeName) const
Aggregate implementations of the ns3::Ipv4, ns3::Ipv6, ns3::Udp, and ns3::Tcp classes onto the provid...
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. 
This test suite implements a Unit Test. 
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.