summaryrefslogtreecommitdiff
path: root/src/net/serverinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/serverinfo.h')
-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