summaryrefslogtreecommitdiff
path: root/server/src/tcpsocket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/tcpsocket.cc')
-rw-r--r--server/src/tcpsocket.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/tcpsocket.cc b/server/src/tcpsocket.cc
index 6fc521f..90f71a5 100644
--- a/server/src/tcpsocket.cc
+++ b/server/src/tcpsocket.cc
@@ -260,6 +260,12 @@ int TCPSocket::write(char *data, int size)
return res;
}
+int TCPSocket::write(std::string data)
+ throw(TCPWriteException)
+{
+ return write((char*)data.c_str(), data.length());
+}
+
std::string TCPSocket::srcaddr()
throw(TCPNameException)
{