My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Connection.h
Go to the documentation of this file.
1 // $Id: Connection.h,v 1.1 2010/02/23 17:19:57 eml Exp $
2 
3 #ifndef GCP_UTIL_CONNECTION_H
4 #define GCP_UTIL_CONNECTION_H
5 
15 #include <string>
16 
17 namespace gcp {
18  namespace util {
19 
20  class Connection {
21  public:
22 
26  Connection();
27 
31  virtual ~Connection();
32 
33  bool isReachable(std::string host, unsigned timeOutInSeconds=10);
34 
35  private:
36 
37  }; // End class Connection
38 
39  } // End namespace util
40 } // End namespace gcp
41 
42 
43 
44 #endif // End #ifndef GCP_UTIL_CONNECTION_H
Definition: Connection.h:20
virtual ~Connection()
Definition: Connection.cc:20
Connection()
Definition: Connection.cc:15