diff options
Diffstat (limited to 'src/net/netcomputer.cpp')
-rw-r--r-- | src/net/netcomputer.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp index 657f615b..ff2bbb71 100644 --- a/src/net/netcomputer.cpp +++ b/src/net/netcomputer.cpp @@ -35,7 +35,6 @@ NetComputer::NetComputer(ENetPeer *peer): mPeer(peer) { - mBandwidth = new BandwidthMonitor; } bool @@ -68,7 +67,7 @@ NetComputer::send(const MessageOut &msg, bool reliable, { LOG_DEBUG("Sending message " << msg << " to " << *this); - mBandwidth->increaseOutput(msg.getLength()); + gBandwidth->increaseClientOutput(this, msg.getLength()); ENetPacket *packet; packet = enet_packet_create(msg.getData(), @@ -85,30 +84,6 @@ NetComputer::send(const MessageOut &msg, bool reliable, } } -int -NetComputer::totalOut() -{ - return mBandwidth->totalOut(); -} - -int -NetComputer::totalIn() -{ - return mBandwidth->totalIn(); -} - -void -NetComputer::increaseIn(int size) -{ - mBandwidth->increaseInput(size); -} - -void -NetComputer::reset() -{ - mBandwidth->reset(); -} - std::ostream& operator <<(std::ostream &os, const NetComputer &comp) { |