DUNE: Uniform Navigational Environment
2019.02.1
|
Implementation of a simple FTP command parser.
This class breaks lines into commands and splits the command into code and parameters.
Public Types |
Public Member Functions | |
CommandParser (void) | |
void | clear (void) |
const std::string & | getCode (void) const |
const std::string & | getParameters (void) const |
Result | parse (char byte) |
|
inline |
Default constructor, initializes parser to a sane state.
References clear().
|
inline |
Reset the parser's internal state.
Referenced by CommandParser(), and parse().
|
inline |
Retrieve the code of the last parsed command.
Referenced by Transports::FTP::Session::~Session().
|
inline |
Retrieve the parameters of the last parsed command.
Referenced by Transports::FTP::Session::~Session().
|
inline |
Parse one byte of data.
References clear(), RES_CMD, RES_ERR_SYN, and RES_NONE.
Referenced by Transports::FTP::Session::~Session().