aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-10-24 00:57:18 +0000
committerMike Buland <eichlan@xagasoft.com>2007-10-24 00:57:18 +0000
commitd1770f567321f8b01185cdf974718aea89669a37 (patch)
treea76ddcb795b99ecd880824c06f505101bf4388a1 /src/client.cpp
parentae5ea621f06a645dbfcf454e9b8f39a99dc8e822 (diff)
downloadlibbu++-d1770f567321f8b01185cdf974718aea89669a37.tar.gz
libbu++-d1770f567321f8b01185cdf974718aea89669a37.tar.bz2
libbu++-d1770f567321f8b01185cdf974718aea89669a37.tar.xz
libbu++-d1770f567321f8b01185cdf974718aea89669a37.zip
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.
Diffstat (limited to '')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
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()
68 if( sWriteBuf.getSize() > 0 ) 68 if( sWriteBuf.getSize() > 0 )
69 { 69 {
70 int nAmnt = (sWriteBuf.getSize()<2048)?(sWriteBuf.getSize()):(2048); 70 int nAmnt = (sWriteBuf.getSize()<2048)?(sWriteBuf.getSize()):(2048);
71 pSocket->write( sWriteBuf.getStr(), nAmnt ); 71 int nReal = pSocket->write( sWriteBuf.getStr(), nAmnt );
72 sWriteBuf.trimFront( nAmnt ); 72 sWriteBuf.trimFront( nReal );
73 //sWriteBuf.clear(); 73 //sWriteBuf.clear();
74 } 74 }
75} 75}