Inheritance diagram for TcpTestCase:
 Collaboration diagram for TcpTestCase:Public Member Functions | |
| TcpTestCase (uint32_t totalStreamSize, uint32_t sourceWriteSize, uint32_t sourceReadSize, uint32_t serverWriteSize, uint32_t serverReadSize, bool useIpv6) | |
  Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () | 
| Destructor.  More... | |
| std::string | GetName (void) const | 
Private Member Functions | |
| Ptr< SimpleNetDevice > | AddSimpleNetDevice (Ptr< Node > node, const char *ipaddr, const char *netmask) | 
| Ptr< SimpleNetDevice > | AddSimpleNetDevice6 (Ptr< Node > node, Ipv6Address ipaddr, Ipv6Prefix prefix) | 
| Ptr< Node > | CreateInternetNode (void) | 
| Ptr< Node > | CreateInternetNode6 (void) | 
| 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 | ServerHandleConnectionCreated (Ptr< Socket > s, const Address &addr) | 
| void | ServerHandleRecv (Ptr< Socket > sock) | 
| void | ServerHandleSend (Ptr< Socket > sock, uint32_t available) | 
| void | SetupDefaultSim (void) | 
| void | SetupDefaultSim6 (void) | 
| void | SourceHandleRecv (Ptr< Socket > sock) | 
| void | SourceHandleSend (Ptr< Socket > sock, uint32_t available) | 
Private Attributes | |
| uint32_t | m_currentServerRxBytes | 
| uint32_t | m_currentServerTxBytes | 
| uint32_t | m_currentSourceRxBytes | 
| uint32_t | m_currentSourceTxBytes | 
| uint32_t | m_serverReadSize | 
| uint8_t * | m_serverRxPayload | 
| uint32_t | m_serverWriteSize | 
| uint32_t | m_sourceReadSize | 
| uint8_t * | m_sourceRxPayload | 
| uint8_t * | m_sourceTxPayload | 
| uint32_t | m_sourceWriteSize | 
| uint32_t | m_totalBytes | 
| bool | m_useIpv6 | 
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, enum TestDuration duration) | 
| Add an individual child TestCase to this test suite.  More... | |
| TestCase * | GetParent () 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... | |
Definition at line 55 of file tcp-test.cc.
| TcpTestCase::TcpTestCase | ( | uint32_t | totalStreamSize, | 
| uint32_t | sourceWriteSize, | ||
| uint32_t | sourceReadSize, | ||
| uint32_t | serverWriteSize, | ||
| uint32_t | serverReadSize, | ||
| bool | useIpv6 | ||
| ) | 
Definition at line 117 of file tcp-test.cc.
      
  | 
  private | 
Definition at line 299 of file tcp-test.cc.
References ns3::Ipv4::AddAddress(), ns3::Node::AddDevice(), ns3::Ipv4::AddInterface(), ns3::Object::GetObject(), ns3::SimpleNetDevice::SetAddress(), and ns3::Ipv4::SetUp().
Referenced by SetupDefaultSim().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 412 of file tcp-test.cc.
References ns3::Ipv6::AddAddress(), ns3::Node::AddDevice(), ns3::Ipv6::AddInterface(), ns3::Object::GetObject(), ns3::SimpleNetDevice::SetAddress(), and ns3::Ipv6::SetUp().
Referenced by SetupDefaultSim6().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 272 of file tcp-test.cc.
References ns3::Object::AggregateObject(), and ns3::Ipv4L3Protocol::SetRoutingProtocol().
Referenced by SetupDefaultSim().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 385 of file tcp-test.cc.
References ns3::Object::AggregateObject().
Referenced by SetupDefaultSim6().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  privatevirtual | 
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 140 of file tcp-test.cc.
References m_currentServerRxBytes, m_currentServerTxBytes, m_currentSourceRxBytes, m_currentSourceTxBytes, m_serverRxPayload, m_sourceRxPayload, m_sourceTxPayload, m_totalBytes, m_useIpv6, NS_TEST_EXPECT_MSG_EQ, SetupDefaultSim(), and SetupDefaultSim6().
 Here is the call graph for this function:
      
  | 
  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 177 of file tcp-test.cc.
References m_serverRxPayload, m_sourceRxPayload, and m_sourceTxPayload.
Definition at line 186 of file tcp-test.cc.
References ns3::MakeCallback(), ServerHandleRecv(), ServerHandleSend(), ns3::Socket::SetRecvCallback(), and ns3::Socket::SetSendCallback().
Referenced by SetupDefaultSim(), and SetupDefaultSim6().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 193 of file tcp-test.cc.
References ns3::Socket::GetErrno(), ns3::Socket::GetRxAvailable(), GetString(), ns3::Socket::GetTxAvailable(), m_currentServerRxBytes, m_serverReadSize, m_serverRxPayload, m_totalBytes, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_TEST_EXPECT_MSG_EQ, ns3::Socket::Recv(), and ServerHandleSend().
Referenced by ServerHandleConnectionCreated().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 213 of file tcp-test.cc.
References ns3::Socket::Close(), GetString(), ns3::Socket::GetTxAvailable(), m_currentServerRxBytes, m_currentServerTxBytes, m_serverRxPayload, m_serverWriteSize, m_totalBytes, NS_LOG_DEBUG, NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::Send().
Referenced by ServerHandleConnectionCreated(), and ServerHandleRecv().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 313 of file tcp-test.cc.
References AddSimpleNetDevice(), third::channel, ns3::Socket::Connect(), CreateInternetNode(), ns3::SocketFactory::CreateSocket(), ns3::Socket::CreateSocket(), ns3::Object::GetObject(), ns3::MakeCallback(), ns3::MakeNullCallback(), port, ServerHandleConnectionCreated(), ns3::SimpleNetDevice::SetChannel(), ns3::Socket::SetRecvCallback(), ns3::Socket::SetSendCallback(), SourceHandleRecv(), and SourceHandleSend().
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 349 of file tcp-test.cc.
References AddSimpleNetDevice6(), third::channel, ns3::Socket::Connect(), CreateInternetNode6(), ns3::SocketFactory::CreateSocket(), ns3::Socket::CreateSocket(), ns3::Object::GetObject(), ns3::MakeCallback(), ns3::MakeNullCallback(), port, ServerHandleConnectionCreated(), ns3::SimpleNetDevice::SetChannel(), ns3::Socket::SetRecvCallback(), ns3::Socket::SetSendCallback(), SourceHandleRecv(), and SourceHandleSend().
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 249 of file tcp-test.cc.
References ns3::Socket::Close(), ns3::Socket::GetErrno(), ns3::Socket::GetRxAvailable(), GetString(), m_currentSourceRxBytes, m_sourceReadSize, m_sourceRxPayload, m_totalBytes, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::Recv().
Referenced by SetupDefaultSim(), and SetupDefaultSim6().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 233 of file tcp-test.cc.
References GetString(), ns3::Socket::GetTxAvailable(), m_currentSourceTxBytes, m_sourceTxPayload, m_sourceWriteSize, m_totalBytes, NS_LOG_DEBUG, NS_TEST_EXPECT_MSG_EQ, and ns3::Socket::Send().
Referenced by SetupDefaultSim(), and SetupDefaultSim6().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 87 of file tcp-test.cc.
Referenced by DoRun(), ServerHandleRecv(), and ServerHandleSend().
      
  | 
  private | 
Definition at line 88 of file tcp-test.cc.
Referenced by DoRun(), and ServerHandleSend().
      
  | 
  private | 
Definition at line 86 of file tcp-test.cc.
Referenced by DoRun(), and SourceHandleRecv().
      
  | 
  private | 
Definition at line 85 of file tcp-test.cc.
Referenced by DoRun(), and SourceHandleSend().
      
  | 
  private | 
Definition at line 84 of file tcp-test.cc.
Referenced by ServerHandleRecv().
      
  | 
  private | 
Definition at line 91 of file tcp-test.cc.
Referenced by DoRun(), DoTeardown(), ServerHandleRecv(), and ServerHandleSend().
      
  | 
  private | 
Definition at line 83 of file tcp-test.cc.
Referenced by ServerHandleSend().
      
  | 
  private | 
Definition at line 82 of file tcp-test.cc.
Referenced by SourceHandleRecv().
      
  | 
  private | 
Definition at line 90 of file tcp-test.cc.
Referenced by DoRun(), DoTeardown(), and SourceHandleRecv().
      
  | 
  private | 
Definition at line 89 of file tcp-test.cc.
Referenced by DoRun(), DoTeardown(), and SourceHandleSend().
      
  | 
  private | 
Definition at line 81 of file tcp-test.cc.
Referenced by SourceHandleSend().
      
  | 
  private | 
Definition at line 80 of file tcp-test.cc.
Referenced by DoRun(), ServerHandleRecv(), ServerHandleSend(), SourceHandleRecv(), and SourceHandleSend().
      
  | 
  private | 
Definition at line 93 of file tcp-test.cc.
Referenced by DoRun().