aboutsummaryrefslogtreecommitdiff
path: root/src/stable/protocoltelnet.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2013-02-17 02:46:00 +0000
committerMike Buland <eichlan@xagasoft.com>2013-02-17 02:46:00 +0000
commit032f6b43efd27585c30de7dfd48ad15247ed6a03 (patch)
treef5deac52f73fffbdcebaadb24fabbb1c33a6a808 /src/stable/protocoltelnet.h
parentc74da8dee7207a81c7e37339f0d3cdb8b5eb37e4 (diff)
downloadlibbu++-032f6b43efd27585c30de7dfd48ad15247ed6a03.tar.gz
libbu++-032f6b43efd27585c30de7dfd48ad15247ed6a03.tar.bz2
libbu++-032f6b43efd27585c30de7dfd48ad15247ed6a03.tar.xz
libbu++-032f6b43efd27585c30de7dfd48ad15247ed6a03.zip
Bu::ProtocolTelnet can now disable echoing if echoing is being controlled by
the server anyway. It needs a bunch more work to handle things like special characters better, but overall it's really pretty good.
Diffstat (limited to 'src/stable/protocoltelnet.h')
-rw-r--r--src/stable/protocoltelnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stable/protocoltelnet.h b/src/stable/protocoltelnet.h
index 9686974..a620a02 100644
--- a/src/stable/protocoltelnet.h
+++ b/src/stable/protocoltelnet.h
@@ -117,6 +117,9 @@ namespace Bu
117 void setCanonical( bool bCon=true ); 117 void setCanonical( bool bCon=true );
118 bool isCanonical(); 118 bool isCanonical();
119 119
120 void setEcho( bool bOpt=true );
121 bool isEchoEnabled();
122
120 void write( const Bu::String &sData ); 123 void write( const Bu::String &sData );
121 void write( const char *pData, int iSize ); 124 void write( const char *pData, int iSize );
122 void write( char cData ); 125 void write( char cData );
@@ -213,6 +216,7 @@ namespace Bu
213 char cSubOpt; /**< Which suboption are we processing. */ 216 char cSubOpt; /**< Which suboption are we processing. */
214 217
215 bool bCanonical; /**< Are we canonicalizing incoming data? */ 218 bool bCanonical; /**< Are we canonicalizing incoming data? */
219 bool bEcho; /**< Should chars be echoed? */
216 bool bSubOpt; /**< Are we processing a suboption right now? */ 220 bool bSubOpt; /**< Are we processing a suboption right now? */
217 }; 221 };
218} 222}