summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-20 00:53:40 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-20 00:53:40 +0000
commitd2b55560009d2d2d33748706f043030b9159d161 (patch)
tree1e15024214dfcb707bd40ff13fcfef15d4d93b0c /src
parentb797d7a7c4481c20b26ecf6ce7ef77e4782534bb (diff)
downloadlibbu++-d2b55560009d2d2d33748706f043030b9159d161.tar.gz
libbu++-d2b55560009d2d2d33748706f043030b9159d161.tar.bz2
libbu++-d2b55560009d2d2d33748706f043030b9159d161.tar.xz
libbu++-d2b55560009d2d2d33748706f043030b9159d161.zip
Updated the connection class to send all outgoing data when there is some.
Later this should be fixed and another function should be added.
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 3b90329..d66ff97 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -330,7 +330,8 @@ bool Connection::clearInput()
330 330
331bool Connection::writeOutput() 331bool Connection::writeOutput()
332{ 332{
333 int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), min( 2048, xOutputBuf.getLength() ) ) ); 333 //int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), min( 2048, xOutputBuf.getLength() ) ) );
334 int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), xOutputBuf.getLength() ) );
334 if( nBytes < 0 ) 335 if( nBytes < 0 )
335 { 336 {
336 perror("writeOutput"); 337 perror("writeOutput");