aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-06-13 20:56:34 +0000
committerMike Buland <eichlan@xagasoft.com>2014-06-13 20:56:34 +0000
commit6482ec1f7550f0fca153bd8f556327902c7afec8 (patch)
treeed95297d44c6ab810d12daaa1d9276e0d959bdd5 /src/stable
parent19cad7be85d35ffff5b78aa43e45fe473ade60f3 (diff)
downloadlibbu++-6482ec1f7550f0fca153bd8f556327902c7afec8.tar.gz
libbu++-6482ec1f7550f0fca153bd8f556327902c7afec8.tar.bz2
libbu++-6482ec1f7550f0fca153bd8f556327902c7afec8.tar.xz
libbu++-6482ec1f7550f0fca153bd8f556327902c7afec8.zip
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!
Diffstat (limited to 'src/stable')
-rw-r--r--src/stable/protocoltelnet.cpp5
-rw-r--r--src/stable/protocoltelnet.h1
2 files changed, 6 insertions, 0 deletions
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 )
321 write( &cData, 1 ); 321 write( &cData, 1 );
322} 322}
323 323
324void Bu::ProtocolTelnet::flush()
325{
326 pClient->flush();
327}
328
324void Bu::ProtocolTelnet::onWill( char cCode ) 329void Bu::ProtocolTelnet::onWill( char cCode )
325{ 330{
326 try 331 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
123 void write( const Bu::String &sData ); 123 void write( const Bu::String &sData );
124 void write( const char *pData, int iSize ); 124 void write( const char *pData, int iSize );
125 void write( char cData ); 125 void write( char cData );
126 void flush();
126 127
127 const Bu::String &getBuffer() { return sDataBuf; } 128 const Bu::String &getBuffer() { return sDataBuf; }
128 129