25 #ifndef __I6ENGINE_CORE_IPKEY_H__
26 #define __I6ENGINE_CORE_IPKEY_H__
34 #if ISIXE_MPLATFORM == ISIXE_MPLATFORM_WIN32
35 #pragma warning(disable : 4351)
39 namespace serialization {
53 friend class boost::serialization::access;
66 IPKey(
const std::string & ip, uint16_t port);
72 explicit IPKey(
const std::string & str);
83 bool operator!=(
const IPKey & other)
const;
88 std::string getIP()
const;
103 bool isValid()
const;
110 std::string toString()
const;
118 return std::hash<std::string>()(key.
toString());
126 template <
typename Archive>
127 void serialize(Archive & ar,
const unsigned int ) {
std::enable_if< std::is_integral< T >::value, bool >::type operator==(const i6eVector2< T > &first, const i6eVector2< T > &second)
uint16_t getPort() const
returns the port of the key
std::string toString() const
Returns the string representation of this IPKey.
IPKey()
default constructor, constructs an invalid Key
std::size_t operator()(const IPKey &key) const
ISIXE_CORE_API std::ostream & operator<<(std::ostream &stream, const IPKey &key)