Public Types |
| enum | StatusType {
NOSTATE = -1,
NORESPONSE = 0,
PRELIM_OK = 1,
COMPLETED_OK = 2,
INTERMEDIATE_OK = 3,
TRANSIENT_FAIL = 4,
PERMANENT_FAIL = 5
} |
| | response types More...
|
| enum | StatusSubtype {
NOSUBTYPE = -1,
SYNTAX = 0,
INFORMATION = 1,
CONNECTION = 2,
AUTHENTICATION = 3,
NONE = 4,
FILESYSTEM = 5
} |
| | response subtypes More...
|
Public Member Functions |
| | Response () |
| virtual | ~Response () |
| void | reset () |
| | resets the FTP response
|
| Response & | operator() (int status) |
| int | status () const |
| | returns the current response status
|
| void | status (int status) |
| | sets the current response status
|
| const ACE_Array< ACE_CString > & | response () const |
| | retrieves the current response line(s)
|
| Response & | operator<< (const ACE_CString &line) |
| | adds a response line
|
| void | write (std::ostream &str) const |
| | Writes the FTP response to the given stream.
|
| bool | read (std::istream &str) |
| StatusType | status_type () const |
| | returns the current response type
|
| bool | is_preliminary_ok () const |
| | returns true if the current response type is PRELIM_OK
|
| bool | is_completed_ok () const |
| | returns true if the current response type is COMPLETED_OK
|
| bool | is_intermediate_ok () const |
| | returns true if the current response type is INTERMEDIATE_OK
|
| bool | is_transient_fail () const |
| | returns true if the current response type is TRANSIENT_FAIL
|
| bool | is_permanent_fail () const |
| | returns true if the current response type is PERMANENT_FAIL
|
| StatusSubtype | status_sub_type () const |
| | returns the current response sub type
|
Static Public Member Functions |
| static StatusType | status_type (int status) |
Private Member Functions |
| int | read_line (std::istream &is, std::ostream &os) |
Private Attributes |
| int | status_ |
| ACE_Array< ACE_CString > | response_ |
Static Private Attributes |
| static const int | eof_ = std::char_traits<char>::eof () |