summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndreas Habel <mail@exceptionfault.de>2009-10-06 22:00:44 +0200
committerAndreas Habel <mail@exceptionfault.de>2009-10-06 22:05:42 +0200
commit610dc30ceecdfe538f71826689630e0f28c278cc (patch)
treec986e5d55850c908e62e46c090c3c0b73505edd4 /src/net
parentc1b93b0bfe2d7c4568de26af85523f83e72293d4 (diff)
downloadmana-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')
-rw-r--r--src/net/serverinfo.h7
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