summaryrefslogtreecommitdiff
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-11-21 09:32:54 +0000
committerDavid Athay <ko2fan@gmail.com>2008-11-21 09:32:54 +0000
commitbed43cf34883d5bf2681c50948e0ddf153846fbb (patch)
tree1a9163e2c673778ecb1e835d9cdfd051ad6570e2 /src/account-server/main-account.cpp
parent7f4209d5b5c0f0f8d02d664365be9a8c605b95d9 (diff)
downloadmanaserv-bed43cf34883d5bf2681c50948e0ddf153846fbb.tar.gz
manaserv-bed43cf34883d5bf2681c50948e0ddf153846fbb.tar.bz2
manaserv-bed43cf34883d5bf2681c50948e0ddf153846fbb.tar.xz
manaserv-bed43cf34883d5bf2681c50948e0ddf153846fbb.zip
Added bandwidth monitor to account server. Fixes compile errors.
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index e6a521cf..f2373d28 100644
--- a/src/account-server/main-account.cpp
+++ b/src/account-server/main-account.cpp
@@ -38,6 +38,7 @@
#include "chat-server/guildmanager.hpp"
#include "chat-server/post.hpp"
#include "common/configuration.hpp"
+#include "net/bandwidth.hpp"
#include "net/connectionhandler.hpp"
#include "net/messageout.hpp"
#include "utils/logger.h"
@@ -69,6 +70,9 @@ GuildManager *guildManager;
/** Post Manager */
PostManager *postalManager;
+/** Bandwidth Monitor */
+BandwidthMonitor *gBandwidth;
+
/** Callback used when SIGQUIT signal is received. */
static void closeGracefully(int)
{
@@ -159,6 +163,8 @@ static void initialize()
guildManager = new GuildManager;
// Initialise the post manager
postalManager = new PostManager;
+ // Initialise the bandwidth monitor
+ gBandwidth = new BandwidthMonitor;
// --- Initialize the global handlers
// FIXME: Make the global handlers global vars or part of a bigger
@@ -201,6 +207,7 @@ static void deinitialize()
delete chatChannelManager;
delete guildManager;
delete postalManager;
+ delete gBandwidth;
// Get rid of persistent data storage
delete storage;