summaryrefslogtreecommitdiff
path: root/src/tests/itoserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/itoserver.cpp')
-rw-r--r--src/tests/itoserver.cpp8
1 files changed, 6 insertions, 2 deletions
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:
33 virtual void onNewData( Bu::Client *pClient ) 33 virtual void onNewData( Bu::Client *pClient )
34 { 34 {
35 TRACE(); 35 TRACE();
36 pClient->write( pClient->getInput().getStr(), pClient->getInputSize() ); 36 char buf[1024];
37 pClient->seek( pClient->getInputSize() ); 37 while( pClient->hasInput() )
38 {
39 int iAmnt = pClient->read( buf, 1024 );
40 pClient->write( buf, iAmnt );
41 }
38 } 42 }
39}; 43};
40 44