Functions.h 392 B

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