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

RWStreamCoupler

Module:  Internet Protocols Module   Package:  Internet Basics


Does not inherit

Local Index

Members

Header File

#include <rw/internet/RWStreamCoupler.h>

Description

RWStreamCoupler provides an automated mechanism for connecting an input stream to an output stream. You can use it in conjunction with the network portal streams and the Internet classes to couple an FTP get to an FTP put, an FTP get to a file, an FTP put from a file, and a POP3 get to a file. You can also use it to automate copying one file to another.

The coupling mechanism respects canonical line termination in ASCII mode, and always uses <cr><lf> pairs to terminate lines when streaming out to a portal.

An optional end-of-input filter may be added to terminate the processing of the input stream prior to the end of the stream.

Example

Public Typedef

typedef bool(*Filter)(const RWCString&);

Public Enum

enum TransferMode { mode_ascii, mode_binary }

Public Constructor

RWStreamCoupler(TransferMode mode=mode_ascii);

Public Member Operators

bool
operator()(istream& in, ostream& out); 
bool
operator()(istream& in, ostream& out, Filter filter); 
bool
operator()(istream& in, RWPortalOStream& out); 
bool
operator()(istream& in, RWPortalOStream& out,
  Filter filter);

Public Member Function

TransferMode
getMode(void) const; 
void
setMode(TransferMode mode); 


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.