29 lines
352 B
C++
29 lines
352 B
C++
#ifndef ICMPCLIENT_H
|
|
#define ICMPCLIENT_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
|
|
namespace Network {
|
|
|
|
class IcmpClientImpl;
|
|
|
|
class IcmpClient
|
|
{
|
|
public:
|
|
IcmpClient();
|
|
~IcmpClient();
|
|
|
|
public:
|
|
bool Ping(const std::string& targetAddress);
|
|
|
|
private:
|
|
std::unique_ptr<IcmpClientImpl> m_pIcmpClientImpl;
|
|
};
|
|
|
|
} // namespace Network
|
|
|
|
#endif // ICMPCLIENT_H
|
|
|