From 6482ec1f7550f0fca153bd8f556327902c7afec8 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 13 Jun 2014 20:56:34 +0000 Subject: Telnet really needed a flush function. Now it has one. We can't be waiting for an update later on to flush our buffers all the time! --- src/stable/protocoltelnet.cpp | 5 +++++ src/stable/protocoltelnet.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp index d1d47a5..1461b0e 100644 --- a/src/stable/protocoltelnet.cpp +++ b/src/stable/protocoltelnet.cpp @@ -321,6 +321,11 @@ void Bu::ProtocolTelnet::write( char cData ) write( &cData, 1 ); } +void Bu::ProtocolTelnet::flush() +{ + pClient->flush(); +} + void Bu::ProtocolTelnet::onWill( char cCode ) { try diff --git a/src/stable/protocoltelnet.h b/src/stable/protocoltelnet.h index 104f029..60faef4 100644 --- a/src/stable/protocoltelnet.h +++ b/src/stable/protocoltelnet.h @@ -123,6 +123,7 @@ namespace Bu void write( const Bu::String &sData ); void write( const char *pData, int iSize ); void write( char cData ); + void flush(); const Bu::String &getBuffer() { return sDataBuf; } -- cgit v1.2.3