aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connection.cpp6
-rw-r--r--src/connection.h7
2 files changed, 12 insertions, 1 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
361bool Connection::writeAllOutput()
362{
363 while( hasOutput() ) writeOutput();
364 return true;
365}
366
361bool Connection::hasOutput() 367bool Connection::hasOutput()
362{ 368{
363 if( xOutputBuf.getLength() == 0 ) 369 if( xOutputBuf.getLength() == 0 )
diff --git a/src/connection.h b/src/connection.h
index b5b121b..5d2d9bd 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -295,11 +295,16 @@ public:
295 */ 295 */
296 void waitForInput( int nBytesIn, int nSec, int nUSec ); 296 void waitForInput( int nBytesIn, int nSec, int nUSec );
297 297
298 /** Writes all data that is pending to the socket. 298 /** Writes some data that is pending to the socket.
299 *@returns True if all data was written succesfully, false otherwise. 299 *@returns True if all data was written succesfully, false otherwise.
300 */ 300 */
301 bool writeOutput(); 301 bool writeOutput();
302 302
303 /**
304 * Writes all data that is pending on the socekt.
305 */
306 bool writeAllOutput();
307
303 /** Determines if the connection has output waiting to go out. 308 /** Determines if the connection has output waiting to go out.
304 *@returns true if there is pending output, otherwise false. 309 *@returns true if there is pending output, otherwise false.
305 */ 310 */