| i6engine
    1.0
    | 
#include <D:/Projekte/i6engine/libs/i6engine-core/include/i6engine/core/messaging/IPKey.h>
| Classes | |
| class | Hash | 
| Public Member Functions | |
| IPKey () | |
| default constructor, constructs an invalid Key  More... | |
| IPKey (const std::string &ip, uint16_t port) | |
| constructor taking ip and port to create a key  More... | |
| IPKey (const std::string &str) | |
| constructor taking a string  More... | |
| ~IPKey () | |
| destructor  More... | |
| bool | operator== (const IPKey &other) const | 
| operator to compare two keys  More... | |
| bool | operator!= (const IPKey &other) const | 
| std::string | getIP () const | 
| returns the ip of the key  More... | |
| uint16_t | getPort () const | 
| returns the port of the key  More... | |
| bool | isValid () const | 
| Returns true if this is a valid IP/Port combination.  More... | |
| std::string | toString () const | 
| Returns the string representation of this IPKey.  More... | |
| Friends | |
| class | boost::serialization::access | 
| ISIXE_CORE_API std::ostream & | operator<< (std::ostream &stream, const IPKey &key) | 
Represents the IP and Port of a PC. This class is used to identify the clients.
| 
 | inline | 
| i6e::core::IPKey::IPKey | ( | const std::string & | ip, | 
| uint16_t | port | ||
| ) | 
constructor taking ip and port to create a key
| 
 | explicit | 
constructor taking a string
| [in] | str | formatted like ip:port | 
| std::string i6e::core::IPKey::getIP | ( | ) | const | 
returns the ip of the key
| 
 | inline | 
| bool i6e::core::IPKey::isValid | ( | ) | const | 
Returns true if this is a valid IP/Port combination.
This method only does a simple check for an empty IP and for an Port = 0. An default constructed IPKey is never valid.
| bool i6e::core::IPKey::operator!= | ( | const IPKey & | other | ) | const | 
| bool i6e::core::IPKey::operator== | ( | const IPKey & | other | ) | const | 
operator to compare two keys
| std::string i6e::core::IPKey::toString | ( | ) | const | 
Returns the string representation of this IPKey.
Returns IP:Port if this is a valid IP and "Invalid IP" otherwise
| 
 | friend |