diff options
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/connection.cpp | 2 | ||||
-rw-r--r-- | src/net/manaserv/connection.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/net/manaserv/connection.cpp b/src/net/manaserv/connection.cpp index d439f964..896d86ad 100644 --- a/src/net/manaserv/connection.cpp +++ b/src/net/manaserv/connection.cpp @@ -42,7 +42,7 @@ Connection::~Connection() connections--; } -bool Connection::connect(const std::string &address, short port) +bool Connection::connect(const std::string &address, enet_uint16 port) { logger->log("Net::Connection::connect(%s, %i)", address.c_str(), port); diff --git a/src/net/manaserv/connection.h b/src/net/manaserv/connection.h index e6646e0e..dfd45e31 100644 --- a/src/net/manaserv/connection.h +++ b/src/net/manaserv/connection.h @@ -25,8 +25,6 @@ #include <enet/enet.h> #include "net/manaserv/network.h" -#include <iosfwd> - namespace ManaServ { class MessageOut; @@ -49,7 +47,7 @@ namespace ManaServ * This method is non-blocking, use isConnected to check whether the * server is connected. */ - bool connect(const std::string &address, short port); + bool connect(const std::string &address, enet_uint16 port); /** * Disconnects from the given server. |