17 #ifndef COM_BORA_SOFTWARE__BALAU_TESTING_UTIL__NETWORK_TESTING 18 #define COM_BORA_SOFTWARE__BALAU_TESTING_UTIL__NETWORK_TESTING 57 static unsigned short getFreeTcpPort(
unsigned short start = 1025,
unsigned short count = 65535);
68 #endif // COM_BORA_SOFTWARE__BALAU_TESTING_UTIL__NETWORK_TESTING Utilities for testing network functionality.
Definition: NetworkTesting.hpp:27
static unsigned short initialiseWithFreeTcpPort(std::function< unsigned short()> code, size_t attempts=10)
Repeatedly execute the supplied code until there is no network exception due to an in use port...
The test runner and test assertion functions.
Definition: Assertions.hpp:23
static unsigned short getFreeTcpPort(unsigned short start=1025, unsigned short count=65535)
Get a TCP port number that is free at the time of the call.