A Discrete-Event Network Simulator
API
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DualStackTestCase Class Reference

IPv6 dual stack Test. More...

+ Inheritance diagram for DualStackTestCase:

Public Member Functions

 DualStackTestCase ()
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Private Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
virtual void DoTeardown (void)
 Implementation to do any local setup required for this TestCase. More...
 
void ServerHandleConnectionCreated1 (Ptr< Socket > s, const Address &addr)
 Handle connection created (1). More...
 
void ServerHandleConnectionCreated2 (Ptr< Socket > s, const Address &addr)
 Handle connection created (2). More...
 
void ServerHandleConnectionCreated3 (Ptr< Socket > s, const Address &addr)
 Handle connection created (3). More...
 
void ServerHandleConnectionCreated4 (Ptr< Socket > s, const Address &addr)
 Handle connection created (4). More...
 
void SetUpSim ()
 Setup the test. More...
 

Private Attributes

Ptr< Nodenode0
 Node 0. More...
 
Ptr< Nodenode1
 Node 1. More...
 
Address receivedAddr1
 Received address (1). More...
 
Address receivedAddr2
 Received address (2). More...
 
Address receivedAddr3
 Received address (3). More...
 
Address receivedAddr4
 Received address (4). More...
 
Ptr< Socketserver1
 Server socket (1). More...
 
Ptr< Socketserver2
 Server socket (2). More...
 
Ptr< Socketserver3
 Server socket (3). More...
 
Ptr< Socketserver4
 Server socket (4). More...
 
Ptr< Socketsource1
 Sending socket (1). More...
 
Ptr< Socketsource2
 Sending socket (2). More...
 
Ptr< Socketsource3
 Sending socket (3). More...
 
Ptr< Socketsource4
 Sending socket (4). More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase. More...
 
bool MustAssertOnFailure (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

IPv6 dual stack Test.

Definition at line 61 of file ipv6-dual-stack-test-suite.cc.

Constructor & Destructor Documentation

◆ DualStackTestCase()

DualStackTestCase::DualStackTestCase ( )

Member Function Documentation

◆ DoRun()

void DualStackTestCase::DoRun ( void  )
privatevirtual

◆ DoTeardown()

void DualStackTestCase::DoTeardown ( void  )
privatevirtual

Implementation to do any local setup required for this TestCase.

Subclasses should override this method to perform any costly per-test teardown

Reimplemented from ns3::TestCase.

Definition at line 332 of file ipv6-dual-stack-test-suite.cc.

◆ ServerHandleConnectionCreated1()

void DualStackTestCase::ServerHandleConnectionCreated1 ( Ptr< Socket s,
const Address addr 
)
private

Handle connection created (1).

Parameters
sThe socket.
addrThe peer address.

Definition at line 229 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ ServerHandleConnectionCreated2()

void DualStackTestCase::ServerHandleConnectionCreated2 ( Ptr< Socket s,
const Address addr 
)
private

Handle connection created (2).

Parameters
sThe socket.
addrThe peer address.

Definition at line 236 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ ServerHandleConnectionCreated3()

void DualStackTestCase::ServerHandleConnectionCreated3 ( Ptr< Socket s,
const Address addr 
)
private

Handle connection created (3).

Parameters
sThe socket.
addrThe peer address.

Definition at line 243 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ ServerHandleConnectionCreated4()

void DualStackTestCase::ServerHandleConnectionCreated4 ( Ptr< Socket s,
const Address addr 
)
private

Handle connection created (4).

Parameters
sThe socket.
addrThe peer address.

Definition at line 250 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ SetUpSim()

void DualStackTestCase::SetUpSim ( )
private

Member Data Documentation

◆ node0

Ptr<Node> DualStackTestCase::node0
private

Node 0.

Definition at line 74 of file ipv6-dual-stack-test-suite.cc.

◆ node1

Ptr<Node> DualStackTestCase::node1
private

◆ receivedAddr1

Address DualStackTestCase::receivedAddr1
private

Received address (1).

Definition at line 112 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and DualStackTestCase().

◆ receivedAddr2

Address DualStackTestCase::receivedAddr2
private

Received address (2).

Definition at line 113 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and DualStackTestCase().

◆ receivedAddr3

Address DualStackTestCase::receivedAddr3
private

Received address (3).

Definition at line 114 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and DualStackTestCase().

◆ receivedAddr4

Address DualStackTestCase::receivedAddr4
private

Received address (4).

Definition at line 115 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun(), and DualStackTestCase().

◆ server1

Ptr<Socket> DualStackTestCase::server1
private

Server socket (1).

Definition at line 102 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ server2

Ptr<Socket> DualStackTestCase::server2
private

Server socket (2).

Definition at line 103 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ server3

Ptr<Socket> DualStackTestCase::server3
private

Server socket (3).

Definition at line 104 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ server4

Ptr<Socket> DualStackTestCase::server4
private

Server socket (4).

Definition at line 105 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ source1

Ptr<Socket> DualStackTestCase::source1
private

Sending socket (1).

Definition at line 107 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ source2

Ptr<Socket> DualStackTestCase::source2
private

Sending socket (2).

Definition at line 108 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ source3

Ptr<Socket> DualStackTestCase::source3
private

Sending socket (3).

Definition at line 109 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().

◆ source4

Ptr<Socket> DualStackTestCase::source4
private

Sending socket (4).

Definition at line 110 of file ipv6-dual-stack-test-suite.cc.

Referenced by DoRun().


The documentation for this class was generated from the following file: