summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/charserverhandler.cpp4
-rw-r--r--src/net/chathandler.cpp3
-rw-r--r--src/net/inventoryhandler.cpp2
-rw-r--r--src/net/loginhandler.cpp4
-rw-r--r--src/net/network.cpp4
-rw-r--r--src/net/playerhandler.cpp2
6 files changed, 9 insertions, 10 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index 5bf45bb4..95555300 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -34,7 +34,7 @@
#include "../gui/ok_dialog.h"
#include "../utils/gettext.h"
-#include "../utils/tostring.h"
+#include "../utils/stringutils.h"
CharServerHandler::CharServerHandler():
mCharCreateDialog(0)
@@ -166,7 +166,7 @@ void CharServerHandler::handleMessage(MessageIn *msg)
slot = mCharInfo->getPos();
msg->skip(4); // CharID, must be the same as player_node->charID
map_path = msg->readString(16);
- mLoginData->hostname = iptostring(msg->readInt32());
+ mLoginData->hostname = ipToString(msg->readInt32());
mLoginData->port = msg->readInt16();
mCharInfo->unlock();
mCharInfo->select(0);
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp
index 14566b39..6717f515 100644
--- a/src/net/chathandler.cpp
+++ b/src/net/chathandler.cpp
@@ -35,8 +35,7 @@
#include "../gui/chat.h"
#include "../utils/gettext.h"
-#include "../utils/tostring.h"
-#include "../utils/trim.h"
+#include "../utils/stringutils.h"
extern Being *player_node;
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp
index ac5f94d3..8ea0071d 100644
--- a/src/net/inventoryhandler.cpp
+++ b/src/net/inventoryhandler.cpp
@@ -38,7 +38,7 @@
#include "../utils/gettext.h"
#include "../utils/strprintf.h"
-#include "../utils/tostring.h"
+#include "../utils/stringutils.h"
InventoryHandler::InventoryHandler()
{
diff --git a/src/net/loginhandler.cpp b/src/net/loginhandler.cpp
index e173252f..cf45dbd4 100644
--- a/src/net/loginhandler.cpp
+++ b/src/net/loginhandler.cpp
@@ -31,7 +31,7 @@
#include "../utils/gettext.h"
#include "../utils/strprintf.h"
-#include "../utils/tostring.h"
+#include "../utils/stringutils.h"
extern SERVER_INFO **server_info;
@@ -111,7 +111,7 @@ void LoginHandler::handleMessage(MessageIn *msg)
logger->log("Network: Server: %s (%s:%d)",
server_info[i]->name.c_str(),
- iptostring(server_info[i]->address),
+ ipToString(server_info[i]->address),
server_info[i]->port);
}
state = CHAR_SERVER_STATE;
diff --git a/src/net/network.cpp b/src/net/network.cpp
index 02d8bf4f..0126ad6d 100644
--- a/src/net/network.cpp
+++ b/src/net/network.cpp
@@ -27,7 +27,7 @@
#include "network.h"
#include "../log.h"
-#include "../utils/tostring.h"
+#include "../utils/stringutils.h"
/** Warning: buffers and other variables are shared,
so there can be only one connection active at a time */
@@ -327,7 +327,7 @@ bool Network::realConnect()
}
logger->log("Network::Started session with %s:%i",
- iptostring(ipAddress.host), ipAddress.port);
+ ipToString(ipAddress.host), ipAddress.port);
mState = CONNECTED;
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp
index 9c34cec6..bce53ae9 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/playerhandler.cpp
@@ -39,7 +39,7 @@
#include "../gui/skill.h"
#include "../gui/viewport.h"
-#include "../utils/tostring.h"
+#include "../utils/stringutils.h"
#include "../utils/gettext.h"
// TODO Move somewhere else