aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-10 01:45:07 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-10 01:45:07 +0000
commit32c48edc85e05bedc6324109e8a5429767dda42a (patch)
tree260535d410e450f419b81b539fb3e9c010fdca40 /src/client.cpp
parent96a0e186d535d761d6b24ef3e929a6710e4b0cea (diff)
downloadlibbu++-32c48edc85e05bedc6324109e8a5429767dda42a.tar.gz
libbu++-32c48edc85e05bedc6324109e8a5429767dda42a.tar.bz2
libbu++-32c48edc85e05bedc6324109e8a5429767dda42a.tar.xz
libbu++-32c48edc85e05bedc6324109e8a5429767dda42a.zip
I Fixed the Hash bug!!!
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index dc91e4b..7332abc 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -63,8 +63,11 @@ void Bu::Client::processOutput()
63{ 63{
64 if( sWriteBuf.getSize() > 0 ) 64 if( sWriteBuf.getSize() > 0 )
65 { 65 {
66 pSocket->write( sWriteBuf.getStr(), sWriteBuf.getSize() ); 66 int nAmnt = (sWriteBuf.getSize()<2048)?(sWriteBuf.getSize()):(2048);
67 sWriteBuf.clear(); 67 printf("Transmitting %d of %ld bytes.\n", nAmnt, sWriteBuf.getSize() );
68 pSocket->write( sWriteBuf.getStr(), nAmnt );
69 sWriteBuf.trimFront( nAmnt );
70 //sWriteBuf.clear();
68 } 71 }
69} 72}
70 73