summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-18 23:50:32 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2009-10-18 23:50:32 +0200
commit38ddcb52e24f027b0feb766fb5e31c3e5d87d89e (patch)
tree869d477dc5d54b0c3c0650f8bae340d76d55e8a4 /src/net
parent11d3cb218027e63135bd3f65c2e0b6a565c69913 (diff)
downloadmanaserv-38ddcb52e24f027b0feb766fb5e31c3e5d87d89e.tar.gz
manaserv-38ddcb52e24f027b0feb766fb5e31c3e5d87d89e.tar.bz2
manaserv-38ddcb52e24f027b0feb766fb5e31c3e5d87d89e.tar.xz
manaserv-38ddcb52e24f027b0feb766fb5e31c3e5d87d89e.zip
Some random cleanups
Diffstat (limited to 'src/net')
-rw-r--r--src/net/connection.hpp1
-rw-r--r--src/net/connectionhandler.cpp2
-rw-r--r--src/net/connectionhandler.hpp2
-rw-r--r--src/net/netcomputer.hpp1
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