rwlogo
SourcePro 11.1

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

Internet Basics
[Internet Protocols Module]

Classes

class  RWProtocolAgentError
 An exception thrown from the Internet Basics package. More...
class  RWProtocolClientError
 An exception thrown from the Internet Basics package. More...
class  RWProtocolClientCmdSequenceError
 An exception thrown from the Internet Basics package. More...
class  RWReplyError
 An exception thrown from the Internet Basics package. More...
class  RWReplySyntaxError
 An exception thrown from the Internet Basics package. More...
class  RWURLError
 An exception thrown from the Internet Basics package. More...
class  RWAgent
 Base class for all protocol-specific agents. More...
class  RWDirEntry
 A convenience class that encapsulates parsing and component storage of directory entries typical of those returned from the FTP LIST command. More...
class  RWNumReply
 Encapsulates a numerical protocol reply typical of many common Internet protocols. More...
class  RWNumReplyLine
 Encapsulates a single numerical protocol reply as defined by the FTP and SMTP protocols. More...
class  RWReply
 Abstract base class for all protocol replies. More...
class  RWStreamCoupler
 Provides an automated mechanism for connecting an input stream to an output stream. More...
class  RWURL
 A convenience class that encapsulates parsing and component management of URL information. More...

Functions

RWCString rwNormalizeLine (RWCString text)
RWCString rwAddPeriods (RWCString line)
RWCString rwRemovePeriods (RWCString line)

Detailed Description

These classes provide the basic tools needed when writing internet applications.


Function Documentation

RWCString rwAddPeriods ( RWCString  line  ) 

Returns a copy of line that replaces all leading periods following any newline character with two periods. This is a convenience function that you can use to reverses the encoding used by SMTP clients to transmit objects over the SMTP protocol. The RWCString should contain 7-bit US-ASCII data.

Header File

 #include <rw/internet/util.h>
RWCString rwNormalizeLine ( RWCString  text  ) 

Returns the text argument normalized by removing <cr><lf> characters embedded in an RWCString.

Header File

 #include <rw/internet/util.h>
RWCString rwRemovePeriods ( RWCString  line  ) 

Returns a copy of line that replaces all leading double periods and double periods following any newline character with single periods. This is a convenience function that you can use to undo the encoding used by POP3 servers to transmit objects over the SMTP protocol. The RWCString should contain 7-bit US-ASCII data.

Header File

 #include <rw/internet/util.h>

© 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.