Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

  1. #if !defined(AFX_PING_H__AC22CA72_3551_11D2_8A45_0000F87A3912__INCLUDED_)
  2. #define AFX_PING_H__AC22CA72_3551_11D2_8A45_0000F87A3912__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // Ping.h : header file
  7. //
  8. #define ICMP_ECHO_RETRY 3 // Retry.
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CPing command target
  11. class CPing : public CSocket
  12. {
  13. // Construction/Destruction
  14. public:
  15. CPing();
  16. virtual ~CPing();
  17. // Operations
  18. public:
  19. unsigned long ResolveIP(const CString& strIP);
  20. unsigned long ResolveName(const CString& strHostName);
  21. BOOL Ping(unsigned long ulIP, int iPingTimeout);
  22. CString GetIP(unsigned long ulIP);
  23. // Overrides
  24. public:
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CPing)
  27. //}}AFX_VIRTUAL
  28. // Generated message map functions
  29. //{{AFX_MSG(CPing)
  30. // NOTE - the ClassWizard will add and remove member functions here.
  31. //}}AFX_MSG
  32. // Implementation
  33. protected:
  34. };
  35. /////////////////////////////////////////////////////////////////////////////
  36. //{{AFX_INSERT_LOCATION}}
  37. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  38. #endif // !defined(AFX_PING_H__AC22CA72_3551_11D2_8A45_0000F87A3912__INCLUDED_)