Networking Tools: Network Communication Classes (net library)
#include <rw/toolpro/netbuf.h> RWNetBuf netBuf;
net, tls (and possibly std)
An RWNetBuf is a network communication buffer class. A network communication buffer is a buffer of 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 U 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 RWBoolean() const;
Returns TRUE if the state of the buffer is normal.
operator RWCString() const;
Returns an RWCString containing the buffer's contents.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.