join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
PingTest Class Reference

Class used to test the ICMP echo client API. More...

Inheritance diagram for PingTest:
Collaboration diagram for PingTest:

Static Public Member Functions

static void SetUpTestCase ()
 set up test case.
 
static void TearDownTestCase ()
 tear down test case.
 

Protected Member Functions

void SetUp () override
 set up test.
 

Static Protected Member Functions

static void ignoreEcho (int ignore)
 make the far host ignore echo requests.
 

Static Protected Attributes

static const std::string _host4 = "127.0.0.1"
 
static const std::string _host6 = "::1"
 
static const std::string _far = "10.10.1.2"
 
static const std::string _far6 = "fd00:11::2"
 
static const std::string _badSource = "1.2.3.4"
 
static const std::string _badDevice = "nosuchdev"
 
static const int _badTtl = 256
 
static const int _farMtu = 1280
 
static const int _farSize = 1300
 
static const int _headerSize = 28
 
static const int _maxPacketSize = 65535
 
static const int _size = 56
 
static const int _count = 3
 
static const int _concurrentCount = 20
 
static const std::chrono::milliseconds _timeout = std::chrono::seconds (5)
 
static const std::chrono::milliseconds _interval = std::chrono::milliseconds (100)
 
static const std::chrono::milliseconds _concurrentTimeout = std::chrono::seconds (1)
 
static const std::chrono::milliseconds _lostTimeout = std::chrono::milliseconds (500)
 

Detailed Description

Class used to test the ICMP echo client API.

Member Function Documentation

◆ ignoreEcho()

static void PingTest::ignoreEcho ( int ignore)
inlinestaticprotected

make the far host ignore echo requests.

Parameters
ignoreset to discard the echo requests, clear to answer them.

◆ SetUp()

void PingTest::SetUp ( )
inlineoverrideprotected

set up test.

◆ SetUpTestCase()

static void PingTest::SetUpTestCase ( )
inlinestatic

set up test case.

◆ TearDownTestCase()

static void PingTest::TearDownTestCase ( )
inlinestatic

tear down test case.

Member Data Documentation

◆ _badDevice

const std::string PingTest::_badDevice = "nosuchdev"
staticprotected

◆ _badSource

const std::string PingTest::_badSource = "1.2.3.4"
staticprotected

◆ _badTtl

const int PingTest::_badTtl = 256
staticprotected

◆ _concurrentCount

const int PingTest::_concurrentCount = 20
staticprotected

◆ _concurrentTimeout

const std::chrono::milliseconds PingTest::_concurrentTimeout = std::chrono::seconds (1)
staticprotected

◆ _count

const int PingTest::_count = 3
staticprotected

◆ _far

const std::string PingTest::_far = "10.10.1.2"
staticprotected

◆ _far6

const std::string PingTest::_far6 = "fd00:11::2"
staticprotected

◆ _farMtu

const int PingTest::_farMtu = 1280
staticprotected

◆ _farSize

const int PingTest::_farSize = 1300
staticprotected

◆ _headerSize

const int PingTest::_headerSize = 28
staticprotected

◆ _host4

const std::string PingTest::_host4 = "127.0.0.1"
staticprotected

◆ _host6

const std::string PingTest::_host6 = "::1"
staticprotected

◆ _interval

const std::chrono::milliseconds PingTest::_interval = std::chrono::milliseconds (100)
staticprotected

◆ _lostTimeout

const std::chrono::milliseconds PingTest::_lostTimeout = std::chrono::milliseconds (500)
staticprotected

◆ _maxPacketSize

const int PingTest::_maxPacketSize = 65535
staticprotected

◆ _size

const int PingTest::_size = 56
staticprotected

◆ _timeout

const std::chrono::milliseconds PingTest::_timeout = std::chrono::seconds (5)
staticprotected

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