Module: Essential Networking Module Package: Networking
RWBufferedRecvPortalRWPortal
#include <rw/network/RWBufferedRecvPortal.h>
RWBufferedRecvPortal inherits from RWPortal to provide buffering of recv() calls. When calling recv() on the underlying RWPortal is expensive, RWBufferedRecvPortal may substantially increase efficiency by limiting the number of calls to the underlying RWPortal.
NOTE -- When buffering receive data, all requests for data must be made through the RWBufferedRecvPortal object; do not make calls directly to the underlying RWPortal. Doing so may lose data that is currently buffered.
RWPortal portal = RWSocketPortal(); portal = RWBufferedRecvPortal(portal, 1024);
RWBufferedRecvPortal(void);
Constructs an invalid RWBufferedRecvPortal. Attempts to send or receive on the portal throw an RWNetNoChannel exception.
To use an instance created with this constructor, you must assign to it from a valid RWBufferedRecvPortal instance.
RWBufferedRecvPortal(const RWPortal& portal, size_t bufferSize);
Constructs a buffered portal on an existing portal. bufferSize is the requested size for the underlying buffer.
© 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.