The ETHERNET device pinger: a helper to allow sending ICMP packets to a host.
More...
#include <DevicePinger.h>
|
| | DevicePinger () |
| | Default constructor.
|
| |
| | DevicePinger (string address) |
| | A copy constructor accepting the IPV4 host address to ping.
|
| |
| | DevicePinger (string address, int timeout) |
| | A copy constructor accepting the IPV4 host address to ping.
|
| |
| void | SetAddress (string address) |
| | Sets the host IPV4 Address to ping.
|
| |
| PING_RESULT | Ping () |
| | Pings the host.
|
| |
| PING_RESULT | Ping (int packetAmount) |
| | Pings the host.
|
| |
The ETHERNET device pinger: a helper to allow sending ICMP packets to a host.
◆ DevicePinger() [1/3]
| DevicePinger::DevicePinger |
( |
| ) |
|
◆ DevicePinger() [2/3]
| DevicePinger::DevicePinger |
( |
string | address | ) |
|
A copy constructor accepting the IPV4 host address to ping.
- Parameters
-
| address | The host IPV4 adress |
◆ DevicePinger() [3/3]
| DevicePinger::DevicePinger |
( |
string | address, |
|
|
int | timeout ) |
A copy constructor accepting the IPV4 host address to ping.
- Parameters
-
| address | The host IPV4 adress |
| timeout | The allowed ping timeout in milliseconds |
◆ Ping() [1/2]
Pings the host.
- Returns
- An encapsulation of ping returns
- Returns
- The amount of packets sent (default amount of packet is 3)
◆ Ping() [2/2]
Pings the host.
- Parameters
-
| packetAmount | How much packet to be sent |
- Returns
- An encapsulation of ping returns
- Parameters
-
| packetAmount | How much packet to be sent |
- Returns
- The amount of packets sent
◆ SetAddress()
| void DevicePinger::SetAddress |
( |
string | address | ) |
|
Sets the host IPV4 Address to ping.
- Parameters
-
| address | The host IPV4 adress |
The documentation for this class was generated from the following files: