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/chat-server/chathandler.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/chat-server/chathandler.hpp')
-rw-r--r-- | src/chat-server/chathandler.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chat-server/chathandler.hpp b/src/chat-server/chathandler.hpp index 1de44fc9..e23a7eba 100644 --- a/src/chat-server/chathandler.hpp +++ b/src/chat-server/chathandler.hpp @@ -64,13 +64,12 @@ class ChatHandler : public ConnectionHandler std::vector<PartyInvite> mPartyInvitedUsers; public: - ChatHandler(); /** * Start the handler. */ - bool startListen(enet_uint16 port); + bool startListen(enet_uint16 port, const std::string &host); /** * Tell a list of users about an event in a chatchannel. |