diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 20:41:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 20:41:02 +0000 |
commit | ab2c48b5c1dc2da0ef220c90446f32f15c2284fd (patch) | |
tree | 79b14e09a0c6156eabd6e8b18d98a2df014e6ef6 /src/socket.cpp | |
parent | 16ad204a5fb2f70a9c74b25b3b186d234cf83b23 (diff) |
Output buffering fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2494 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 7be61c9d4..561435a2a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -177,6 +177,7 @@ int InspSocket::Write(std::string data) { this->Buffer = this->Buffer + data; this->FlushWriteBuffer(); + return data.length(); } void InspSocket::FlushWriteBuffer() @@ -184,7 +185,7 @@ void InspSocket::FlushWriteBuffer() int result = 0; if (this->Buffer.length()) { - result = send(this->fd,this->Buffer,this->Buffer.length(),0); + result = send(this->fd,this->Buffer.c_str(),this->Buffer.length(),0); if (result > 0) { /* If we wrote some, advance the buffer forwards */ |