diff options
author | deva <deva> | 2007-09-03 09:58:51 +0000 |
---|---|---|
committer | deva <deva> | 2007-09-03 09:58:51 +0000 |
commit | 41e5a068b0b595be86797fd12035dabb87c21f36 (patch) | |
tree | 7d9dd21b54d5d8075b220e5aa06526387ca53d20 /server/src/tcpsocket.cc | |
parent | f49186b63888caedd5e0dad4a52a680fb28834a4 (diff) |
Simplified TCP socket write of strings. Cleaned up debug output.
Diffstat (limited to 'server/src/tcpsocket.cc')
-rw-r--r-- | server/src/tcpsocket.cc | 6 |
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) { |