A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::TcpHeaderGetSetTestCase Class Reference
+ Inheritance diagram for ns3::TcpHeaderGetSetTestCase:
+ Collaboration diagram for ns3::TcpHeaderGetSetTestCase:

Public Member Functions

 TcpHeaderGetSetTestCase (uint16_t sourcePort, uint16_t destinationPort, SequenceNumber32 sequenceNumber, SequenceNumber32 ackNumber, uint8_t flags, uint16_t m_windowSize, uint16_t m_urgentPointer, std::string name)
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Protected Attributes

SequenceNumber32 m_ackNumber
 ACK number. More...
 
uint16_t m_destinationPort
 Destination port. More...
 
uint8_t m_flags
 Flags (really a uint6_t) More...
 
SequenceNumber32 m_sequenceNumber
 Sequence number. More...
 
uint16_t m_sourcePort
 Source port. More...
 
uint16_t m_urgentPointer
 Urgent pointer. More...
 
uint16_t m_windowSize
 Window size. More...
 

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...
 

Private Attributes

Buffer m_buffer
 
TcpHeader m_header
 

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)
 
void AddTestCase (TestCase *testCase) NS_DEPRECATED
 Add an individual child TestCase case to this TestCase. More...
 
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
bool GetErrorStatus (void) const NS_DEPRECATED
 
TestCaseGetParent () const
 
bool IsStatusFailure (void) const
 
bool IsStatusSuccess (void) const
 
void SetDataDir (std::string directory)
 
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
 
bool MustContinueOnFailure (void) const
 
std::string CreateDataDirFilename (std::string filename)
 
std::string CreateTempDirFilename (std::string filename)
 

Detailed Description

Definition at line 31 of file tcp-header-test.cc.

Constructor & Destructor Documentation

ns3::TcpHeaderGetSetTestCase::TcpHeaderGetSetTestCase ( uint16_t  sourcePort,
uint16_t  destinationPort,
SequenceNumber32  sequenceNumber,
SequenceNumber32  ackNumber,
uint8_t  flags,
uint16_t  m_windowSize,
uint16_t  m_urgentPointer,
std::string  name 
)

Member Function Documentation

void ns3::TcpHeaderGetSetTestCase::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 124 of file tcp-header-test.cc.

Member Data Documentation

SequenceNumber32 ns3::TcpHeaderGetSetTestCase::m_ackNumber
protected

ACK number.

Definition at line 42 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

Buffer ns3::TcpHeaderGetSetTestCase::m_buffer
private

Definition at line 52 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

uint16_t ns3::TcpHeaderGetSetTestCase::m_destinationPort
protected

Destination port.

Definition at line 40 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

uint8_t ns3::TcpHeaderGetSetTestCase::m_flags
protected

Flags (really a uint6_t)

Definition at line 43 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

TcpHeader ns3::TcpHeaderGetSetTestCase::m_header
private

Definition at line 51 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

SequenceNumber32 ns3::TcpHeaderGetSetTestCase::m_sequenceNumber
protected

Sequence number.

Definition at line 41 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

uint16_t ns3::TcpHeaderGetSetTestCase::m_sourcePort
protected

Source port.

Definition at line 39 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

uint16_t ns3::TcpHeaderGetSetTestCase::m_urgentPointer
protected

Urgent pointer.

Definition at line 45 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().

uint16_t ns3::TcpHeaderGetSetTestCase::m_windowSize
protected

Window size.

Definition at line 44 of file tcp-header-test.cc.

Referenced by DoRun(), and TcpHeaderGetSetTestCase().


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