SourcePro 11.1 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Network communication buffer class. More...
#include <rw/network/RWNetBuf.h>
Public Types | |
enum | State { normal, eof } |
Public Member Functions | |
RWNetBuf () | |
RWNetBuf (const RWCString &buf, State state=normal) | |
operator bool () const | |
operator RWCString () const | |
RWCString | getData () const |
State | getState () const |
RWNetBuf is a network communication buffer class. A network communication buffer contains bytes of data and associated flags that indicate the state of the buffer. An RWNetBuf should not be confused with a TLI netbuf (TLI is the Unix System V network communication interface).
enum RWNetBuf::State |
The State enum indicates the state of the buffer.
RWNetBuf::RWNetBuf | ( | ) |
Constructs an empty buffer.
Constructs a buffer from an RWCString. The optional state parameter indicates the state of the buffer at the time of construction.
RWCString RWNetBuf::getData | ( | void | ) | const [inline] |
Returns an RWCString
containing the buffer's contents.
RWNetBuf::State RWNetBuf::getState | ( | ) | const [inline] |
Returns the state of the buffer.
RWNetBuf::operator bool | ( | ) | const |
Returns true
if the state of the buffer is normal.
© 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.