Module: Essential Networking Module Package: Networking
Does not inherit
#include <rw/network/RWNetBuf.h>
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).
RWNetBuf();
Constructs an empty buffer.
RWNetBuf(const RWCString& buf, State state=normal);
Constructs a buffer from an RWCString. The optional state parameter indicates the state of the buffer at the time of construction.
enum State {
normal=1, // Nothing special eof=0 // End of file };
The State enum indicates the state of the buffer.
operator bool() const;
Returns true if the state of the buffer is normal.
operator RWCString() const;
Returns an RWCString containing the buffer's contents.
RWCString getData() const;
Returns an RWCString containing the buffer's contents.
State getState() const;
Returns the state of the 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.