From d1770f567321f8b01185cdf974718aea89669a37 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 24 Oct 2007 00:57:18 +0000 Subject: Corrected a few issues that cropped up when using the Bu::Socket without a Client for buffering. The Bu::Client has also been made a little more reliable. The logger should get a few more tweaks, but it works fine for now, the hex dump could stand another tweak or two. --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index b546deb..f69ea24 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -68,8 +68,8 @@ void Bu::Client::processOutput() if( sWriteBuf.getSize() > 0 ) { int nAmnt = (sWriteBuf.getSize()<2048)?(sWriteBuf.getSize()):(2048); - pSocket->write( sWriteBuf.getStr(), nAmnt ); - sWriteBuf.trimFront( nAmnt ); + int nReal = pSocket->write( sWriteBuf.getStr(), nAmnt ); + sWriteBuf.trimFront( nReal ); //sWriteBuf.clear(); } } -- cgit v1.2.3