16 #ifndef HAZELCAST_ADDRESS 17 #define HAZELCAST_ADDRESS 19 #include "hazelcast/util/HazelcastDll.h" 20 #include "hazelcast/client/serialization/IdentifiedDataSerializable.h" 25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 30 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 32 #pragma warning(disable: 4251) //for dll export 43 Address(
const std::string &hostname,
int port,
unsigned long scopeId);
55 Address(
const std::string &url,
int port);
61 bool operator == (
const Address &address)
const;
67 bool operator != (
const Address &address)
const;
83 const std::string& getHost()
const;
86 virtual int getFactoryId()
const;
88 virtual int getClassId()
const;
96 unsigned long getScopeId()
const;
98 bool operator<(
const Address &rhs)
const;
100 std::string toString()
const;
105 unsigned long scopeId;
107 static const byte IPV4;
108 static const byte IPV6;
111 typedef std::less<Address> addressComparator;
113 std::ostream HAZELCAST_API &operator << (std::ostream &stream,
const Address &address);
118 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
Definition: ObjectDataOutput.h:54
IP Address.
Definition: Address.h:41
Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit ...
Definition: IdentifiedDataSerializable.h:47
Definition: MapEntryView.h:32