aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stable/protocoltelnet.cpp10
-rw-r--r--src/stable/protocoltelnet.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp
index f6fbd4b..51e33a8 100644
--- a/src/stable/protocoltelnet.cpp
+++ b/src/stable/protocoltelnet.cpp
@@ -347,6 +347,16 @@ void Bu::ProtocolTelnet::close()
347 pClient->close(); 347 pClient->close();
348} 348}
349 349
350void Bu::ProtocolTelnet::setBuffer( const Bu::String &sNewBuffer )
351{
352 sDataBuf = sNewBuffer;
353}
354
355void Bu::ProtocolTelnet::appendBuffer( const Bu::String &sNewData )
356{
357 sDataBuf += sNewData;
358}
359
350void Bu::ProtocolTelnet::onWill( char cCode ) 360void Bu::ProtocolTelnet::onWill( char cCode )
351{ 361{
352 Bu::MutexLocker l( mWrite ); 362 Bu::MutexLocker l( mWrite );
diff --git a/src/stable/protocoltelnet.h b/src/stable/protocoltelnet.h
index efc8889..23a2ee0 100644
--- a/src/stable/protocoltelnet.h
+++ b/src/stable/protocoltelnet.h
@@ -128,6 +128,8 @@ namespace Bu
128 void close(); 128 void close();
129 129
130 const Bu::String &getBuffer() { return sDataBuf; } 130 const Bu::String &getBuffer() { return sDataBuf; }
131 void setBuffer( const Bu::String &sNewBuffer );
132 void appendBuffer( const Bu::String &sNewData );
131 133
132 public: 134 public:
133 /** 135 /**