diff options
Diffstat (limited to 'src/stable')
-rw-r--r-- | src/stable/protocoltelnet.cpp | 6 | ||||
-rw-r--r-- | src/stable/protocoltelnet.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp index 9cf2a7b..77bc3dc 100644 --- a/src/stable/protocoltelnet.cpp +++ b/src/stable/protocoltelnet.cpp | |||
@@ -339,6 +339,12 @@ void Bu::ProtocolTelnet::flush() | |||
339 | pClient->flush(); | 339 | pClient->flush(); |
340 | } | 340 | } |
341 | 341 | ||
342 | void Bu::ProtocolTelnet::close() | ||
343 | { | ||
344 | Bu::MutexLocker l( mWrite ); | ||
345 | pClient->close(); | ||
346 | } | ||
347 | |||
342 | void Bu::ProtocolTelnet::onWill( char cCode ) | 348 | void Bu::ProtocolTelnet::onWill( char cCode ) |
343 | { | 349 | { |
344 | Bu::MutexLocker l( mWrite ); | 350 | Bu::MutexLocker l( mWrite ); |
diff --git a/src/stable/protocoltelnet.h b/src/stable/protocoltelnet.h index 19298dc..efc8889 100644 --- a/src/stable/protocoltelnet.h +++ b/src/stable/protocoltelnet.h | |||
@@ -125,6 +125,7 @@ namespace Bu | |||
125 | void write( const char *pData, int iSize ); | 125 | void write( const char *pData, int iSize ); |
126 | void write( char cData ); | 126 | void write( char cData ); |
127 | void flush(); | 127 | void flush(); |
128 | void close(); | ||
128 | 129 | ||
129 | const Bu::String &getBuffer() { return sDataBuf; } | 130 | const Bu::String &getBuffer() { return sDataBuf; } |
130 | 131 | ||