Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWIPop3Agent


RWIPop3AgentRWIAgent

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/pop3a.h>
RWIPop3Agent agent;
RWIPop3Agent agent("mail.roguewave.com", "user",
                   "password");

Required Libraries

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

Description

RWIPop3Agent provides basic POP3 mail accesses. It deals with more of the details of the POP3 protocol than the RWIPop3Client class, but provides less flexibility than the client class.

RWIPop3Agent performs actions in a transaction-based model rather than in the connection-based model of the RWIPop3Client. The methods interact with the server by connecting (if not already connected) and then performing the requested actions. Unlike other thread-hot internet agent classes, such as RWIFtpAgent and RWIHttpAgent, class RWIPop3Agent remains connected between transactions. This is because POP3 relies on transient, connection-based information. Multiple transactions may be performed before the object is destroyed. The destructor of the agent disconnects from the server and cleans up its own data.

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

Example

Public Constructors

RWIPop3Agent();
RWIPop3Agent(const RWCString& host, const RWCString& user,
             const RWCString& password);

Public Member Functions

RWIOUResult<RWSocketPortal>
get(int messageIndex);
RWIOUResult<int>
messages();
RWIOUResult<RWIPop3Reply>
remove(int messageIndex);


Previous fileTop of DocumentContentsIndexNext file

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