Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWIPop3Client



Module

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

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

Member Functions

Synopsis

#include <rw/toolpro/pop3.h>
RWIPop3Client client;

Required Libraries

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

Description

RWIPop3Client provides low-level access to the POP3 client-side protocol. The names of the methods parallel the names of the protocol commands. The RWIPop3Client class maintains a finite state machine to enforce correct POP3 protocol action ordering. In the case of misordered method invocation, an exception is thrown.

Each client method returns an RWIOUResult whose redeemable is a particular type of RWIPop3Reply. RWIPop3Reply and its subclasses RWIPop3ConnReply, RWIPop3StatReply, and RWIPop3DataReply contain encapsulations of standard POP3 protocol reply messages. The derived classes of RWIPop3Reply return additional information specific to that type of protocol reply.

All multi-line POP3 responses are provided on a portal available by calling RWIPop3DataReply::portal(). These lines are bounded by the octet pair <cr><lf>, and the final line of a multi-line response consists of the triplet <period><cr><lf>.

RWIPop3Client objects are lightweight. They are implemented using the interface-implementation pattern. The RWIPop3Client itself is really a handle to an implementation that performs the protocol interaction.

Example

Public Constructor

RWIPop3Client();

Public Member Functions

RWIOUResult<RWIPop3ConnReply>
connect(const RWCString& host, int port=110); 
RWIOUResult<RWIPop3Reply>
dele(int message);
RWIOUResult<RWIPop3DataReply>
list(int message=0);
RWIOUResult<RWIPop3Reply>
noop(); 
RWIOUResult<RWIPop3Reply>
pass(const RWCString& password); 
RWIOUResult<RWIPop3Reply>
quit();
RWIOUResult<RWIPop3DataReply>
retr(int message);
RWIOUResult<RWIPop3Reply>
rset();
RWIOUResult<RWIPop3StatReply>
stat();
RWIOUResult<RWIPop3DataReply>
top(int message, int lines);
RWIOUResult<RWIPop3DataReply>
uidl(int message=0);
RWIOUResult<RWIPop3Reply>
user(const RWCString& user); 

Related Global Functions

RWBoolean
pop3StreamFilter(const RWCString& buffer);


Previous fileTop of DocumentContentsIndexNext file

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