RWIPop3ReplyRWIReply
Networking Tools: Thread-hot Internet Classes (int library)
#include <rw/toolpro/preply.h> RWIPop3Reply preply;
thr, net, int, tls (and possibly std)
RWIPop3Reply encapsulates a general POP3 protocol reply. It is the base class for more specific POP3 replies. Specific subclasses of RWIPop3Reply (RWIPop3ConnReply, RWIPop3DataReply, and RWIPop3StatReply) return additional information specific to those types of POP3 protocol replies.
Here are some examples of POP3 server command replies:
+OK scan listing follows -ERR no such message
RWIPop3Reply();
Constructs a default invalid RWIPop3Reply. You need to use the assignment operator to initialize the default RWIPop3Reply object.
RWCString data() const;
Returns the raw text used to construct the reply object. This can be useful in situations dealing with non-standard servers.
RWBoolean isErr() const;
Returns TRUE if the reply is negative (-ERR).
RWBoolean isOk() const;
Returns TRUE if the reply is positive (+OK).
RWCString data_;
Contains the raw data line.
virtual void parse();
Provides an empty parsing mechanism. Derived classes can override the virtual function to grab extra meaning in a specific reply.
void readFromPortal(const RWSocketPortal& portal);
Reads data from the portal to construct the RWIPop3Reply object.
ostream& operator<<(ostream& strm, const RWIPop3Reply& r);
Outputs an RWIPop3Reply object to an ostream.
Note: This class does not have an extraction (>>) operator.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.