Functions.h 372 B

12345678910111213141516171819202122
  1. #ifndef WIFI_FUNCTIONS_H
  2. #define WIFI_FUNCTIONS_H
  3. #include <string>
  4. namespace PresenceDetection {
  5. namespace WiFi {
  6. class Functions
  7. {
  8. public:
  9. static bool Ping(const std::string& ipAddress);
  10. private:
  11. static uint16_t ICMPChecksum(uint16_t* addr, unsigned len);
  12. };
  13. } // namespace WiFi
  14. } // namespace PresenceDetection
  15. #endif // WIFI_FUNCTIONS_H