#include <TelnetBuffer.h>
Public Member Functions | |
TelnetBuffer () | |
Public constructor. | |
virtual | ~TelnetBuffer () |
Vitual destructor. | |
common::ErrorCodeType | Receive (TcpSocket &rSocket) |
Recieves data. | |
const std::string & | GetBuffer () const |
Gets buffer. | |
Private Types | |
enum | EscapeState { ESCAPE_STATE_IDLE, ESCAPE_STATE_CSI, ESCAPE_STATE_CMD, ESCAPE_STATE_STR, ESCAPE_STATE_INT } |
Enumeration of ANSI escape states. More... | |
Private Member Functions | |
void | ProcessCharacter (char ch, TcpSocket &rSocket) |
Processes character. | |
void | ProcessControlCharacter (char ch, TcpSocket &rSocket) |
Processes control character. | |
void | ProcessEscapeSequence (char ch, TcpSocket &rSocket) |
Processes escape sequence. | |
Private Attributes | |
std::string | m_Buffer |
Buffered data. | |
TcpSocket * | m_pSocket |
Pointer to socket. | |
bool | m_Receiving |
Receiving data. | |
EscapeState | m_EscapeState |
ANSI escape state. |
enum EscapeState [private] |
TelnetBuffer | ( | ) |
Public constructor.
~TelnetBuffer | ( | ) | [virtual] |
Vitual destructor.
common::ErrorCodeType Receive | ( | TcpSocket & | rSocket | ) |
Recieves data.
Failure otherwise.
rSocket | TCP socket. |
const std::string& GetBuffer | ( | ) | const [inline] |
Gets buffer.
void ProcessCharacter | ( | char | ch, | |
TcpSocket & | rSocket | |||
) | [private] |
Processes character.
ch | Character to be processed. |
rSocket | Socket reference. |
void ProcessControlCharacter | ( | char | ch, | |
TcpSocket & | rSocket | |||
) | [private] |
Processes control character.
ch | Character to be processed. |
rSocket | Socket reference. |
void ProcessEscapeSequence | ( | char | ch, | |
TcpSocket & | rSocket | |||
) | [private] |
Processes escape sequence.
ch | Character to be processed. |
rSocket | Socket reference. |
std::string m_Buffer [private] |
Buffered data.
bool m_Receiving [private] |
Receiving data.
EscapeState m_EscapeState [private] |
ANSI escape state.
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander