icmp.h 279 B

12345678910111213141516171819
  1. #ifndef HV_ICMP_H_
  2. #define HV_ICMP_H_
  3. #include "hdef.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. // @param cnt: ping count
  8. // @return: ok count
  9. // @note: printd $CC -DPRINT_DEBUG
  10. int ping(const char* host, int cnt DEFAULT(4));
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif // HV_ICMP_H_