| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_BASE_TELNET_SERVER_H_ | 5 #ifndef NET_BASE_TELNET_SERVER_H_ |
| 6 #define NET_BASE_TELNET_SERVER_H_ | 6 #define NET_BASE_TELNET_SERVER_H_ |
| 7 | 7 |
| 8 #include "net/base/listen_socket.h" | 8 #include "net/base/listen_socket.h" |
| 9 | 9 |
| 10 // Implements the telnet protocol on top of the raw socket interface. | 10 // Implements the telnet protocol on top of the raw socket interface. |
| 11 // DidRead calls to the delegate are buffered on a line by line basis. | 11 // DidRead calls to the delegate are buffered on a line by line basis. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // telnet commands | 49 // telnet commands |
| 50 void SendIAC(int command, int option); | 50 void SendIAC(int command, int option); |
| 51 void StateMachineStep(unsigned char c); | 51 void StateMachineStep(unsigned char c); |
| 52 | 52 |
| 53 TelnetInputState input_state_; | 53 TelnetInputState input_state_; |
| 54 int iac_command_; // Last command read. | 54 int iac_command_; // Last command read. |
| 55 int iac_option_; // Last option read. | 55 int iac_option_; // Last option read. |
| 56 std::string command_line_; | 56 std::string command_line_; |
| 57 | 57 |
| 58 DISALLOW_EVIL_CONSTRUCTORS(TelnetServer); | 58 DISALLOW_COPY_AND_ASSIGN(TelnetServer); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // NET_BASE_TELNET_SERVER_H_ | 61 #endif // NET_BASE_TELNET_SERVER_H_ |
| OLD | NEW |