Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWINumReplyLine



Module

Networking Tools: Thread-hot Internet Classes (int library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Data Types

Member Functions

Synopsis

#include <rw/toolpro/nreplyln.h>
RWINumReplyLine reply;
RWINumReplyLine reply("200 Command Ok");

Required Libraries

thr, net, int, tls (and possibly std)

Description

RWINumReplyLine encapsulates a single numerical protocol reply as defined by the FTP and SMTP protocols. An example reply line is 200 Command Ok. If the 4th character of a reply line is the symbol "-" instead of <space>, it means that the reply consists of multiple lines, with the symbol "-" as the continuation marker. The continuation attribute is therefore used by RWINumReply to build a complete reply that encapsulates an entire server response.

Public Enums

enum Family { INVALID, VALID_1XX, VALID_2XX,
              VALID_3XX, VALID_4XX, VALID_5XX };

Public Constructors

RWINumReplyLine();
RWINumReplyLine(const RWCString& s);

Public Member Operators

RWBoolean
operator==(const RWINumReplyLine& other) const; 

Public Member Functions

unsigned int
code() const;
RWCString
codeAsString() const;
RWCString
data() const;
RWBoolean
isContinued() const;
RWBoolean
isValid() const;
RWBoolean     
is1XX() const;
RWBoolean
is2XX() const;
RWBoolean
is3XX() const;
RWBoolean
is4XX() const;
RWBoolean
is5XX() const;
void
reset();
void
set(const RWCString& data);
RWCString
text() const;

Global Operators

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


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.