summaryrefslogtreecommitdiff
path: root/src/net/connectionhandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/connectionhandler.hpp')
-rw-r--r--src/net/connectionhandler.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/connectionhandler.hpp b/src/net/connectionhandler.hpp
index d22224a7..8c8ecf40 100644
--- a/src/net/connectionhandler.hpp
+++ b/src/net/connectionhandler.hpp
@@ -23,6 +23,7 @@
#define _TMWSERV_CONNECTIONHANDLER_H_
#include <list>
+#include <string>
#include <enet/enet.h>
class MessageIn;
@@ -41,8 +42,11 @@ class ConnectionHandler
/**
* Open the server socket.
+ * @param port the port to listen to
+ * @host the host IP to listen on, defaults to the default localhost
*/
- bool startListen(enet_uint16 port);
+ bool startListen(enet_uint16 port,
+ const std::string &host = std::string());
/**
* Disconnect all the clients and close the server socket.