IcmpClient.h 352 B

12345678910111213141516171819202122232425262728
  1. #ifndef ICMPCLIENT_H
  2. #define ICMPCLIENT_H
  3. #include <memory>
  4. #include <string>
  5. namespace Network {
  6. class IcmpClientImpl;
  7. class IcmpClient
  8. {
  9. public:
  10. IcmpClient();
  11. ~IcmpClient();
  12. public:
  13. bool Ping(const std::string& targetAddress);
  14. private:
  15. std::unique_ptr<IcmpClientImpl> m_pIcmpClientImpl;
  16. };
  17. } // namespace Network
  18. #endif // ICMPCLIENT_H