1 #ifndef ISPN_HOTROD_TRANSPORT_INETSOCKETADDRESS_H 2 #define ISPN_HOTROD_TRANSPORT_INETSOCKETADDRESS_H 19 InetSocketAddress(
const InetSocketAddress& other): hostname(other.hostname), addresses(other.addresses), port(other.port) {
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;
HR_EXPORT const std::string & getHostname() const
HR_EXPORT const std::set< std::string > & getAddresses() const
#define HR_EXPORT
Definition: ImportExport.h:26
HR_EXPORT bool operator==(const InetSocketAddress &rhs) const
InetSocketAddress(const InetSocketAddress &other)
Definition: InetSocketAddress.h:19
Definition: InetSocketAddress.h:14
HR_EXPORT int getPort() const
Definition: BasicMarshaller.h:11
HR_EXPORT bool operator<(const InetSocketAddress &rhs) const
bool isEmpty()
Definition: InetSocketAddress.h:30
InetSocketAddress()
Definition: InetSocketAddress.h:17
HR_EXPORT InetSocketAddress & operator=(infinispan::hotrod::transport::InetSocketAddress const &)
HR_EXPORT friend std::ostream & operator<<(std::ostream &os, const InetSocketAddress &isa)