diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-12-04 23:53:05 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-12-04 23:53:05 +0000 |
commit | 6da14489cebc2f3c7e6e8e2788ffd04046bd8533 (patch) | |
tree | 310347c2414c579da6a132c06abab5898d6b8195 /src/connection.cpp | |
parent | b31f3cc022a7681cdc79131b929e4c0372c441f9 (diff) | |
download | libbu++-6da14489cebc2f3c7e6e8e2788ffd04046bd8533.tar.gz libbu++-6da14489cebc2f3c7e6e8e2788ffd04046bd8533.tar.bz2 libbu++-6da14489cebc2f3c7e6e8e2788ffd04046bd8533.tar.xz libbu++-6da14489cebc2f3c7e6e8e2788ffd04046bd8533.zip |
Added the writeAllOutput function to Connection. It's handy.
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index aa130db..0dff918 100644 --- a/src/connection.cpp +++ b/src/connection.cpp | |||
@@ -358,6 +358,12 @@ bool Connection::writeOutput() | |||
358 | return true; | 358 | return true; |
359 | } | 359 | } |
360 | 360 | ||
361 | bool Connection::writeAllOutput() | ||
362 | { | ||
363 | while( hasOutput() ) writeOutput(); | ||
364 | return true; | ||
365 | } | ||
366 | |||
361 | bool Connection::hasOutput() | 367 | bool Connection::hasOutput() |
362 | { | 368 | { |
363 | if( xOutputBuf.getLength() == 0 ) | 369 | if( xOutputBuf.getLength() == 0 ) |