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/rot13.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tests/rot13.cpp') diff --git a/src/tests/rot13.cpp b/src/tests/rot13.cpp index 2326888..03ba385 100644 --- a/src/tests/rot13.cpp +++ b/src/tests/rot13.cpp @@ -67,8 +67,12 @@ public: void onNewData( Bu::Client *pClient ) { - 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