Ocean
Ocean Test Network Library

The Ocean Test Network Library provides several functions to test the performance and validation of the Ocean Network Library. More...

Collaboration diagram for Ocean Test Network Library:

Data Structures

class  Ocean::Test::TestNetwork::TestData
 This class implements test for Data. More...
 
class  Ocean::Test::TestNetwork::TestPackagedTCPClient
 This class implements test for PackagedTCPClient. More...
 
class  Ocean::Test::TestNetwork::TestTCPClient
 This class implements test for TCPClient. More...
 

Functions

OCEAN_TEST_NETWORK_EXPORT bool Ocean::Test::TestNetwork::testNetwork (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests the entire network library. More...
 
OCEAN_TEST_NETWORK_EXPORT void Ocean::Test::TestNetwork::testNetworkAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests the entire network library. More...
 

Detailed Description

The Ocean Test Network Library provides several functions to test the performance and validation of the Ocean Network Library.

The library is platform independent.

Function Documentation

◆ testNetwork()

OCEAN_TEST_NETWORK_EXPORT bool Ocean::Test::TestNetwork::testNetwork ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests the entire network library.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object.
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testNetworkAsynchron()

OCEAN_TEST_NETWORK_EXPORT void Ocean::Test::TestNetwork::testNetworkAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests the entire network library.

This function returns directly as the actual test is invoked in an own thread.
Use this function for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested