summaryrefslogtreecommitdiff
path: root/src/account-server/serverhandler.hpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 17:20:36 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 17:20:36 +0200
commit610ececb74d5efb4ed4df54dbceaa54fcbcf99e5 (patch)
tree4cfa485ebd00103bcb7cd7c139435bc0c92088e4 /src/account-server/serverhandler.hpp
parentaf12180611e2c0520ee4974d5246e474fd8e704e (diff)
downloadmanaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.gz
manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.bz2
manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.tar.xz
manaserv-610ececb74d5efb4ed4df54dbceaa54fcbcf99e5.zip
Made it possible to specify the host to listen on
Needed when the server has multiple network interfaces and the one you want to use isn't the default one for localhost. The host to listen on can be set in config file with 'net_listenHost'.
Diffstat (limited to 'src/account-server/serverhandler.hpp')
-rw-r--r--src/account-server/serverhandler.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account-server/serverhandler.hpp b/src/account-server/serverhandler.hpp
index f89c6ddc..dab3cf2e 100644
--- a/src/account-server/serverhandler.hpp
+++ b/src/account-server/serverhandler.hpp
@@ -34,7 +34,7 @@ namespace GameServerHandler
/**
* Creates a connection handler and starts listening on given port.
*/
- bool initialize(int port);
+ bool initialize(int port, const std::string &host);
/**
* Stops listening to messages and destroys the connection handler.