aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/protocoltelnet.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/protocoltelnet.cpp b/src/protocoltelnet.cpp
index 5361a61..22c988e 100644
--- a/src/protocoltelnet.cpp
+++ b/src/protocoltelnet.cpp
@@ -270,7 +270,7 @@ void Bu::ProtocolTelnet::write( const Bu::FString &sData )
270{ 270{
271 write( sData.getStr(), sData.getSize() ); 271 write( sData.getStr(), sData.getSize() );
272} 272}
273#include "bu/logger.h" 273
274void Bu::ProtocolTelnet::write( const char *pData, int iSize ) 274void Bu::ProtocolTelnet::write( const char *pData, int iSize )
275{ 275{
276 int iLast = 0, j; 276 int iLast = 0, j;
@@ -281,9 +281,7 @@ void Bu::ProtocolTelnet::write( const char *pData, int iSize )
281 if( j+1 >= iSize || 281 if( j+1 >= iSize ||
282 (pData[j+1] != '\r' && pData[j+1] != '\0') ) 282 (pData[j+1] != '\r' && pData[j+1] != '\0') )
283 { 283 {
284 logHexDump( 1, pData+iLast, j-iLast, "bo" );
285 pClient->write( pData+iLast, j-iLast ); 284 pClient->write( pData+iLast, j-iLast );
286 logHexDump( 1, "\n\r", 2, "ba" );
287 pClient->write( "\n\r", 2 ); 285 pClient->write( "\n\r", 2 );
288 iLast = j+1; 286 iLast = j+1;
289 } 287 }
@@ -295,7 +293,6 @@ void Bu::ProtocolTelnet::write( const char *pData, int iSize )
295 } 293 }
296 if( j > iLast ) 294 if( j > iLast )
297 { 295 {
298 logHexDump( 1, pData+iLast, iSize-iLast, "bl" );
299 pClient->write( pData+iLast, iSize-iLast ); 296 pClient->write( pData+iLast, iSize-iLast );
300 } 297 }
301 //pClient->write( pData, iSize ); 298 //pClient->write( pData, iSize );