49 io_ptrs () : m_read_base (0), m_read_ptr (0), m_read_end (0),
50 m_write_base (0), m_write_ptr (0), m_write_end (0),
51 m_buf_base (0), m_buf_end (0), m_flags (0)
162 int sgetn (
char* b_,
int len_);
179 int sputn (
char* b_,
int len_);
218 char*
egptr ()
const;
222 void setg (
char* gbeg_,
char* gnext_,
char* gend_);
229 char*
pbase ()
const;
242 char*
epptr ()
const;
246 void setp (
char* pbeg_,
char* pend_);
262 void setb (
char* b_,
char* eb_,
int del_);
309 virtual int xsgetn (
char* b_,
int len_);
341 virtual int uflow ();
351 virtual int xsputn (
const char* b_,
int len_);
563 return xsgetn (data_, len_);
588 setp (
char* pbeg_,
char* pend_)
int sputc(char c_)
This function stores c just after the put pointer, and advances the pointer one position, possibly extending the sequence.
static const int MAXTCPFRAMESZ
Size of the internal input/output buffer.
char * gptr() const
Returns a pointer to the beginning of the get area, and thus to the next character to be fetched (if ...
char * base() const
Returns the lowest possible value for gptr() - the beginning of the get area.
void setg(char *gbeg_, char *gnext_, char *gend_)
Set get area pointers.
void pbump(int n_)
Advances the next pointer for the output sequence by n_.
int sputn(char *b_, int len_)
From the location pointed to by ptr, stores exactly len characters after the put pointer, advancing the put pointer just past the last character.
char * epptr() const
Returns a pointer just past the end of the put area, the maximum possible value for pptr()...
int in_avail()
This function returns the number of characters immediately available in the get area.
Streambuf()
The default constructor is protected for class Streambuf to asssure that only objects for classes der...
Streambuf * pubsetbuf(char *s_, int n_)
Set buffer.
char * pbase() const
Returns a pointer to the beginning fo the space available for the put area, the lowest possible value...
virtual int underflow()
This function is called to supply characters for input (from some source) when the get area is empty...
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
virtual int sync()
This function synchronizes the streambuf with its actual stream of characters.
A collection of assert function wrappers.
Extended Streambuf & friends messages.
char * egptr() const
Returns a pointer just past the end of the get area, the maximum possible value for gptr()...
int sgetc()
This function returns the character after the get pointer, or EOF if the get pointer is at the end of...
virtual int overflow(int c=EOF)
This function is called to consume characters (flush them to output), typically when the put area is ...
char * pptr() const
Returns a pointer to the beginning of the put area, and thus to the location of the next character th...
virtual int xsgetn(char *b_, int len_)
Assigns up to len_ characters to successive elements of the array whose first element is designated b...
virtual Streambuf * setbuf(char *p_, int len_)
Performs an operation that is defined separately for each class derived from Streambuf.
virtual int xsputn(const char *b_, int len_)
Writes up to len_ characters to the output sequence as if by repeated calls to sputc (c)...
virtual int doallocate()
This function is called by allocate when unbuffered() is zero and base() is zero. ...
int sgetn(char *b_, int len_)
This function gets the next len_ characters following the get pointer, copying them to the char array...
virtual int showmanyc()
The morphemes of showmanyc are "es-how-many-see", not "show-man-ic".
void setp(char *pbeg_, char *pend_)
Set put area pointers.
Streambuf & operator=(const Streambuf &)
virtual int uflow()
Reads the characters from the input sequence, if possible, and moves the stream position past it...
void setb(char *b_, char *eb_, int del_)
Establish the reserve area (buffer).
int sbumpc()
This function should probably have been called ``sgetc''.
int snextc()
This function moves the get pointer forward one position, then returns the character after the get po...