summaryrefslogtreecommitdiffstats
path: root/net/base/telnet_server.h
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 17:39:46 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-10 17:39:46 +0000
commit72d1e597c85fbf6b45756e3c753696370c48c042 (patch)
treed01609d62295e34aa3a5721d4109f815d0fd23ad /net/base/telnet_server.h
parent9475d1d189c03a0626c4855b38f6004bfe7c5bb8 (diff)
downloadchromium_src-72d1e597c85fbf6b45756e3c753696370c48c042.zip
chromium_src-72d1e597c85fbf6b45756e3c753696370c48c042.tar.gz
chromium_src-72d1e597c85fbf6b45756e3c753696370c48c042.tar.bz2
Slight code change to make some global variables const.
Fix >80 cols lines. Review URL: http://codereview.chromium.org/42013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/telnet_server.h')
-rw-r--r--net/base/telnet_server.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/net/base/telnet_server.h b/net/base/telnet_server.h
index 1f7c21a..9b9c4e8 100644
--- a/net/base/telnet_server.h
+++ b/net/base/telnet_server.h
@@ -24,15 +24,24 @@ protected:
private:
enum TelnetInputState {
- NOT_IN_IAC_OR_ESC_SEQUENCE, // Currently not processing any IAC or ESC sequence.
- EXPECTING_NEW_LINE, // Received carriage return (CR) expecting new line (LF).
- EXPECTING_COMMAND, // Processing IAC expecting command.
- EXPECTING_OPTION, // Processing IAC expecting option.
- SUBNEGOTIATION_EXPECTING_IAC, // Inside subnegoation IAC,SE will end it.
- SUBNEGOTIATION_EXPECTING_SE, // Ending subnegoation expecting SE.
- EXPECTING_FIRST_ESC_CHARACTER, // Processing ESC sequence.
- EXPECTING_SECOND_ESC_CHARACTER, // Processing ESC sequence with two characters
- EXPECTING_NUMBER_SEMICOLON_OR_END // Processing "ESC [" sequence.
+ // Currently not processing any IAC or ESC sequence.
+ NOT_IN_IAC_OR_ESC_SEQUENCE,
+ // Received carriage return (CR) expecting new line (LF).
+ EXPECTING_NEW_LINE,
+ // Processing IAC expecting command.
+ EXPECTING_COMMAND,
+ // Processing IAC expecting option.
+ EXPECTING_OPTION,
+ // Inside subnegoation IAC,SE will end it.
+ SUBNEGOTIATION_EXPECTING_IAC,
+ // Ending subnegoation expecting SE.
+ SUBNEGOTIATION_EXPECTING_SE,
+ // Processing ESC sequence.
+ EXPECTING_FIRST_ESC_CHARACTER,
+ // Processing ESC sequence with two characters.
+ EXPECTING_SECOND_ESC_CHARACTER,
+ // Processing "ESC [" sequence.
+ EXPECTING_NUMBER_SEMICOLON_OR_END
};
TelnetServer(SOCKET s, ListenSocketDelegate* del);
@@ -50,4 +59,3 @@ private:
};
#endif // BASE_TELNET_SERVER_H_
-