diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 17:20:36 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-24 17:20:36 +0200 |
commit | 610ececb74d5efb4ed4df54dbceaa54fcbcf99e5 (patch) | |
tree | 4cfa485ebd00103bcb7cd7c139435bc0c92088e4 /src/account-server/serverhandler.hpp | |
parent | af12180611e2c0520ee4974d5246e474fd8e704e (diff) | |
download | manaserv-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.hpp | 2 |
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. |