diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/connection.hpp | 1 | ||||
-rw-r--r-- | src/net/connectionhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/connectionhandler.hpp | 2 | ||||
-rw-r--r-- | src/net/netcomputer.hpp | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/net/connection.hpp b/src/net/connection.hpp index 2beeb04a..c7eb9737 100644 --- a/src/net/connection.hpp +++ b/src/net/connection.hpp @@ -27,7 +27,6 @@ class MessageIn; class MessageOut; -class BandwidthMonitor; /** * A point-to-point connection to a remote host. The remote host can use a diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index 1f98b046..ef37f3d8 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -147,7 +147,7 @@ void ConnectionHandler::sendToEveryone(const MessageOut &msg) } } -unsigned int ConnectionHandler::getClientNumber() +unsigned int ConnectionHandler::getClientCount() const { return clients.size(); } diff --git a/src/net/connectionhandler.hpp b/src/net/connectionhandler.hpp index 8c8ecf40..0b8d3002 100644 --- a/src/net/connectionhandler.hpp +++ b/src/net/connectionhandler.hpp @@ -80,7 +80,7 @@ class ConnectionHandler /** * Return the number of connected clients. */ - unsigned int getClientNumber(); + unsigned int getClientCount() const; private: ENetAddress address; /**< Includes the port to listen to. */ diff --git a/src/net/netcomputer.hpp b/src/net/netcomputer.hpp index 10ffe5ae..1724d293 100644 --- a/src/net/netcomputer.hpp +++ b/src/net/netcomputer.hpp @@ -26,7 +26,6 @@ #include <enet/enet.h> class MessageOut; -class BandwidthMonitor; /** * This class represents a known computer on the network. For example a |