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)
106 static const int MAXTCPFRAMESZ = 65536;
162 int sgetn (
char* b_,
int len_);
179 int sputn (
char* b_,
int len_);
186 void unbuffered (
int i_);
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_);
275 virtual Streambuf* setbuf (
char* p_,
int len_);
300 virtual int showmanyc ();
309 virtual int xsgetn (
char* b_,
int len_);
323 virtual int underflow ();
341 virtual int uflow ();
351 virtual int xsputn (
const char* b_,
int len_);
367 virtual int overflow (
int c = EOF);
376 virtual int doallocate ();
385 return setbuf (s_, n_);
563 return xsgetn (data_, len_);
583 return xsputn (b_, 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.
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.
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.
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.
Synchronous connection mode.
char * epptr() const
Returns a pointer just past the end of the put area, the maximum possible value for pptr()...
A collection of assert function wrappers.
Extended Streambuf & friends messages.
int sgetc()
This function returns the character after the get pointer, or EOF if the get pointer is at the end of...
char * pbase() const
Returns a pointer to the beginning fo the space available for the put area, the lowest possible value...
virtual int overflow(int c=EOF)
This function is called to consume characters (flush them to output), typically when the put area is ...
char * gptr() const
Returns a pointer to the beginning of the get area, and thus to the next character to be fetched (if ...
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.
int sbumpc()
This function should probably have been called ``sgetc''.
char * base() const
Returns the lowest possible value for gptr() - the beginning of the get area.
char * egptr() const
Returns a pointer just past the end of the get area, the maximum possible value for gptr()...
char * pptr() const
Returns a pointer to the beginning of the put area, and thus to the location of the next character th...