SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWTPortalStream< charT, traits > Class Template Reference

Provides a std::basic_iostream that uses an RWPortal as its source and sink of bytes. More...

#include <rw/network/RWTPortalStream.h>

Inheritance diagram for RWTPortalStream< charT, traits >:
RWTPortalStreamBase< charT, traits >

Public Member Functions

 RWTPortalStream ()
 
 RWTPortalStream (const RWPortal &)
 
- Public Member Functions inherited from RWTPortalStreamBase< charT, traits >
 RWTPortalStreamBase ()
 
 RWTPortalStreamBase (const RWPortal &)
 
void attach (const RWPortal &p, bool force=false)
 
void detach (bool force=false)
 

Detailed Description

template<class charT, class traits>
class RWTPortalStream< charT, traits >

RWTPortalStream provides a std::basic_iostream that uses an RWPortal as its source and sink of bytes. The RWPortal associated with this class can be attached to any of the communications channels supported by SourcePro Net.

Constructor & Destructor Documentation

template<class charT , class traits >
RWTPortalStream< charT, traits >::RWTPortalStream ( )

Constructs a portal input/output stream from a portal.

Note
RWTPortalStream should not be used with a non-blocking communications channel. The implementation of this class uses the recvAtLeast() and sendAtLeast() member functions of the underlying RWPortal. These functions will likely throw exceptions if called on a non-blocking communications channel.
template<class charT , class traits >
RWTPortalStream< charT, traits >::RWTPortalStream ( const RWPortal )

Constructs a portal input/output stream from a portal.

Note
RWTPortalStream should not be used with a non-blocking communications channel. The implementation of this class uses the recvAtLeast() and sendAtLeast() member functions of the underlying RWPortal. These functions will likely throw exceptions if called on a non-blocking communications channel.

Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.