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

RWPop3Agent

Module:  Internet Protocols Module   Package:  POP3


RWPop3AgentRWAgent

Local Index

Members

Header File

#include <rw/pop3/RWPop3Agent.h>

Description

RWPop3Agent enables basic POP3 mail accesses. It includes more of the details of the POP3 protocol than the RWPop3Client class, but has less flexibility.

RWPop3Agent performs actions in a transaction-based model (contrast with the connection-based model of the RWPop3Client). Its 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 RWFtpAgent, class RWPop3Agent remains connected between transactions 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.

RWPop3Agent objects are lightweight. They are implemented using the interface-implementation idiom. The RWPop3Agent is a handle to an implementation that performs the protocol interaction.

Example

Public Constructors

RWPop3Agent();
RWPop3Agent(const RWSockAddrBase& address, 
                const RWCString& user,  
            const RWCString& password);

Public Member Functions

RWTIOUResult<RWSocketPortal>
getMessage(int messageIndex);
RWTIOUResult<int>
getMessageCount();
unsigned long
getTimeout(void) const;
RWTIOUResult<RWPop3Reply>
removeMessage(int messageIndex);
void
setTimeout(unsigned long timeout);


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.