diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 | 
| commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
| tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/protocoltelnet.h | |
| parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
| parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
| download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip  | |
Wow!  Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to '')
| -rw-r--r-- | src/protocoltelnet.h | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/src/protocoltelnet.h b/src/protocoltelnet.h index 253be79..74d6478 100644 --- a/src/protocoltelnet.h +++ b/src/protocoltelnet.h  | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* | 
| 2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | 
| 3 | * | 3 | * | 
| 4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the | 
| 5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. | 
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | #include "bu/protocol.h" | 11 | #include "bu/protocol.h" | 
| 12 | #include "bu/hash.h" | 12 | #include "bu/hash.h" | 
| 13 | #include "bu/fstring.h" | 13 | #include "bu/string.h" | 
| 14 | 14 | ||
| 15 | // #define __TELNET_DEBUG | 15 | // #define __TELNET_DEBUG | 
| 16 | 16 | ||
| @@ -88,7 +88,7 @@ namespace Bu | |||
| 88 | * the line or not, the data will be cleared from the buffer when this | 88 | * the line or not, the data will be cleared from the buffer when this | 
| 89 | * function returns, any changes made to the buffer will be destroyed. | 89 | * function returns, any changes made to the buffer will be destroyed. | 
| 90 | */ | 90 | */ | 
| 91 | virtual void gotLine( Bu::FString & /*sLine*/ ){}; | 91 | virtual void gotLine( Bu::String & /*sLine*/ ){}; | 
| 92 | 92 | ||
| 93 | /** | 93 | /** | 
| 94 | * Override this function to be notified of any new data that comes in | 94 | * Override this function to be notified of any new data that comes in | 
| @@ -98,7 +98,7 @@ namespace Bu | |||
| 98 | * child class in this function, the buffer will never be cleared unless | 98 | * child class in this function, the buffer will never be cleared unless | 
| 99 | * it happens in this function's override. | 99 | * it happens in this function's override. | 
| 100 | */ | 100 | */ | 
| 101 | virtual void gotData( Bu::FString & /*sData*/ ){}; | 101 | virtual void gotData( Bu::String & /*sData*/ ){}; | 
| 102 | 102 | ||
| 103 | /** | 103 | /** | 
| 104 | * Using this function to enable or disable canonical mode only affects | 104 | * Using this function to enable or disable canonical mode only affects | 
| @@ -117,11 +117,11 @@ namespace Bu | |||
| 117 | void setCanonical( bool bCon=true ); | 117 | void setCanonical( bool bCon=true ); | 
| 118 | bool isCanonical(); | 118 | bool isCanonical(); | 
| 119 | 119 | ||
| 120 | void write( const Bu::FString &sData ); | 120 | void write( const Bu::String &sData ); | 
| 121 | void write( const char *pData, int iSize ); | 121 | void write( const char *pData, int iSize ); | 
| 122 | void write( char cData ); | 122 | void write( char cData ); | 
| 123 | 123 | ||
| 124 | const Bu::FString &getBuffer() { return sDataBuf; } | 124 | const Bu::String &getBuffer() { return sDataBuf; } | 
| 125 | 125 | ||
| 126 | public: | 126 | public: | 
| 127 | /** | 127 | /** | 
| @@ -138,7 +138,7 @@ namespace Bu | |||
| 138 | * sSubBuf, it will be cleared as soon as this function returns anyway. | 138 | * sSubBuf, it will be cleared as soon as this function returns anyway. | 
| 139 | */ | 139 | */ | 
| 140 | virtual void onSubUnknown( char /*cSubOpt*/, | 140 | virtual void onSubUnknown( char /*cSubOpt*/, | 
| 141 | Bu::FString & /*sSubBuf*/ ){}; | 141 | Bu::String & /*sSubBuf*/ ){}; | 
| 142 | 142 | ||
| 143 | private: | 143 | private: | 
| 144 | /** | 144 | /** | 
| @@ -208,8 +208,8 @@ namespace Bu | |||
| 208 | private: | 208 | private: | 
| 209 | Client *pClient; | 209 | Client *pClient; | 
| 210 | 210 | ||
| 211 | Bu::FString sDataBuf; /**< Buffer for regular line data. */ | 211 | Bu::String sDataBuf; /**< Buffer for regular line data. */ | 
| 212 | Bu::FString sSubBuf; /**< Buffer for subnegotiation data. */ | 212 | Bu::String sSubBuf; /**< Buffer for subnegotiation data. */ | 
| 213 | char cSubOpt; /**< Which suboption are we processing. */ | 213 | char cSubOpt; /**< Which suboption are we processing. */ | 
| 214 | 214 | ||
| 215 | bool bCanonical; /**< Are we canonicalizing incoming data? */ | 215 | bool bCanonical; /**< Are we canonicalizing incoming data? */ | 
