diff options
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 */ |