aboutsummaryrefslogtreecommitdiff
path: root/lib/network/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/socket.cpp')
-rw-r--r--lib/network/socket.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/network/socket.cpp b/lib/network/socket.cpp
index 9de0ca0a..628a128b 100644
--- a/lib/network/socket.cpp
+++ b/lib/network/socket.cpp
@@ -43,16 +43,16 @@ void eSocket::inject(const char *data, int len)
readyRead_();
}
-eString eSocket::readLine()
+std::string eSocket::readLine()
{
int size=readbuffer.searchchr('\n');
if (size == -1)
- return eString();
+ return std::string();
size++; // ich will auch das \n
char buffer[size+1];
buffer[size]=0;
readbuffer.read(buffer, size);
- return eString(buffer);
+ return std::string(buffer);
}
bool eSocket::canReadLine()
@@ -225,7 +225,7 @@ int eSocket::getDescriptor()
return socketdesc;
}
-int eSocket::connectToHost(eString hostname, int port)
+int eSocket::connectToHost(std::string hostname, int port)
{
struct hostent *server;
int res;