diff options
author | Andreas Habel <mail@exceptionfault.de> | 2009-10-06 22:00:44 +0200 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2009-10-06 22:05:42 +0200 |
commit | 610dc30ceecdfe538f71826689630e0f28c278cc (patch) | |
tree | c986e5d55850c908e62e46c090c3c0b73505edd4 /src/net/serverinfo.h | |
parent | c1b93b0bfe2d7c4568de26af85523f83e72293d4 (diff) | |
download | mana-610dc30ceecdfe538f71826689630e0f28c278cc.tar.gz mana-610dc30ceecdfe538f71826689630e0f28c278cc.tar.bz2 mana-610dc30ceecdfe538f71826689630e0f28c278cc.tar.xz mana-610dc30ceecdfe538f71826689630e0f28c278cc.zip |
Implemented server selection list loaded from online xml file.
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index ebc67722..f410e516 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -27,11 +27,13 @@ class ServerInfo { public: + std::string name; std::string hostname; unsigned short port; void clear() { + name.clear(); hostname.clear(); port = 0; } @@ -40,6 +42,11 @@ public: { return (hostname == other.hostname && port == other.port); } + + bool operator!=(const ServerInfo &other) + { + return (hostname != other.hostname || port != other.port); + } }; #endif // SERVERINFO_H |