Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWNumReply

Module:  Internet Protocols Module   Package:  Internet Basics


RWNumReplyRWReply

Local Index

Members

Non-Members

Header File

#include <rw/internet/RWNumReply.h>

Description

RWNumReply encapsulates a numerical protocol reply typical of many common Internet protocols. For instance, FTP replies in the forms shown in the following table are parsed first into RWNumReplyLine objects and then stored in an RWNumReply object. Individual RWNumReplyLine objects can be obtained using the operator[].

Single Line Replies Multiple Line Replies

200 Command Ok

220-Text Message 1

 

Text Message 2

 

Text Message 3

 

220 Text Message 4

The numerical portion of a reply is a 3-digit number in ASCII. The first digit of the number indicates the general status of the result of a command. Convenience methods included in RWNumReply enable your application to determine the category (1XX, 2XX, 3XX, 4XX, or 5XX).

Public Constructors

RWNumReply();
RWNumReply(const RWNumReply& reply);

Public Destructor

virtual
~RWNumReply();

Public Member Operators

RWNumReply&
operator=(const RWNumReply& reply);
const RWNumReplyLine&
operator[](size_t i) const;

Public Member Functions

void
clearAndDestroy();
size_t
entries() const; 
RWCString
getData() const;
unsigned int
getStatusCode() const;
bool
is1XX() const; 
bool
is2XX() const;
bool
is3XX() const;
bool
is4XX() const;
bool
is5XX() const;

Protected Member Functions

void
append(RWNumReplyLine& r);
void
copy(const RWNumReply& r);
virtual void
parse();
void
readFromPortal(const RWPortal& portal);

Global Operator

ostream&
operator<<(ostream& strm, const RWNumReply& r);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.