diff options
Diffstat (limited to 'src/net/serverinfo.h')
-rw-r--r-- | src/net/serverinfo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index ac2e803d..ebc67722 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -24,7 +24,9 @@ #include <string> -typedef struct SERVER_INFO { +class ServerInfo +{ +public: std::string hostname; unsigned short port; @@ -34,10 +36,10 @@ typedef struct SERVER_INFO { port = 0; } - bool operator==(struct SERVER_INFO other) + bool operator==(const ServerInfo &other) { return (hostname == other.hostname && port == other.port); } -} ServerInfo; +}; #endif // SERVERINFO_H |