1 #ifndef ISPN_HOTROD_TRANSPORT_INETSOCKETADDRESS_H 2 #define ISPN_HOTROD_TRANSPORT_INETSOCKETADDRESS_H 14 class InetSocketAddress
17 InetSocketAddress() : hostname(
""), port(0) {};
18 HR_EXPORT InetSocketAddress(
const std::string& host,
int p);
19 InetSocketAddress(
const InetSocketAddress& other): hostname(other.hostname), addresses(other.addresses), port(other.port) {
22 HR_EXPORT const std::string& getHostname()
const;
23 HR_EXPORT const std::set<std::string>& getAddresses()
const;
26 HR_EXPORT bool operator ==(
const InetSocketAddress& rhs)
const;
27 HR_EXPORT bool operator <(
const InetSocketAddress& rhs)
const;
28 HR_EXPORT InetSocketAddress& operator=(infinispan::hotrod::transport::InetSocketAddress
const&);
29 HR_EXPORT friend std::ostream& operator<<(std::ostream& os,
const InetSocketAddress& isa);
30 bool isEmpty() {
return port==0 && hostname.empty(); }
34 std::set<std::string> addresses;
37 HR_EXPORT bool isSameHost(
const std::set<std::string>& lhs,
const std::set<std::string>& rhs)
const;
#define HR_EXPORT
Definition: ImportExport.h:26
Definition: AuthenticationConfiguration.h:10