Ocean
|
The Ocean Test Network Library provides several functions to test the performance and validation of the Ocean Network Library. More...
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... | |
The Ocean Test Network Library provides several functions to test the performance and validation of the Ocean Network Library.
The library is platform independent.
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.
testDuration | Number of seconds for each test, with range (0, infinity) |
worker | The worker object to distribute some computation on as many CPU cores as defined in the worker object. |
testFunctions | Optional name of the functions to be tested |
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.
testDuration | Number of seconds for each test, with range (0, infinity) |
testFunctions | Optional name of the functions to be tested |