diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index dc91e4b..7332abc 100644 --- a/src/client.cpp +++ b/src/client.cpp | |||
@@ -63,8 +63,11 @@ void Bu::Client::processOutput() | |||
63 | { | 63 | { |
64 | if( sWriteBuf.getSize() > 0 ) | 64 | if( sWriteBuf.getSize() > 0 ) |
65 | { | 65 | { |
66 | pSocket->write( sWriteBuf.getStr(), sWriteBuf.getSize() ); | 66 | int nAmnt = (sWriteBuf.getSize()<2048)?(sWriteBuf.getSize()):(2048); |
67 | sWriteBuf.clear(); | 67 | printf("Transmitting %d of %ld bytes.\n", nAmnt, sWriteBuf.getSize() ); |
68 | pSocket->write( sWriteBuf.getStr(), nAmnt ); | ||
69 | sWriteBuf.trimFront( nAmnt ); | ||
70 | //sWriteBuf.clear(); | ||
68 | } | 71 | } |
69 | } | 72 | } |
70 | 73 | ||