4 #include "api/internal/io/HostAddress_p.h"
14 enum ErrorType { NoError = 0
22 HostInfo(const HostInfo& other);
27 std::string HostName(void) const;
28 void SetHostName(const std::string& name);
30 std::vector<HostAddress> Addresses(void) const;
31 void SetAddresses(const std::vector<HostAddress>& addresses);
33 HostInfo::ErrorType GetError(void) const;
34 std::string GetErrorString(void) const;
38 void SetError(const HostInfo::ErrorType error);
39 void SetErrorString(const std::string& errorString);
43 static HostInfo Lookup(const std::string& hostname,
44 const std::string& port);
48 std::string m_hostName;
49 std::vector<HostAddress> m_addresses;
50 HostInfo::ErrorType m_error;
51 std::string m_errorString;
54 } // namespace Internal
55 } // namespace BamTools
57 #endif // HOSTINFO_P_H