From 7ad392ce0426a040cc55713691bf6fdbf53c3d31 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 13 May 2010 21:11:47 +0000 Subject: QueueBuf is updated, and everything else uses it now, including Client. Unfortunately this breaks some programs that accessed the client internal buffer directly. Overall it's much, much more efficient, so it's worth it, maybe we'll find a good workaround later. --- src/tests/itoserver.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tests/itoserver.cpp') diff --git a/src/tests/itoserver.cpp b/src/tests/itoserver.cpp index cf5f6d1..5f6e4fa 100644 --- a/src/tests/itoserver.cpp +++ b/src/tests/itoserver.cpp @@ -33,8 +33,12 @@ public: virtual void onNewData( Bu::Client *pClient ) { TRACE(); - pClient->write( pClient->getInput().getStr(), pClient->getInputSize() ); - pClient->seek( pClient->getInputSize() ); + char buf[1024]; + while( pClient->hasInput() ) + { + int iAmnt = pClient->read( buf, 1024 ); + pClient->write( buf, iAmnt ); + } } }; -- cgit v1.2.3