ASSA::io_ptrs Class Reference

io_ptrs structure. More...

#include <Streambuf.h>

Inheritance diagram for ASSA::io_ptrs:
ASSA::Streambuf ASSA::Socketbuf

List of all members.

Public Types

enum  { USER_BUF = 1, UNBUFFERED = 2, EOF_SEEN = 4, ERR_SEEN = 8 }

Public Member Functions

 io_ptrs ()
void dump () const

Public Attributes

char * m_read_base
char * m_read_ptr
char * m_read_end
char * m_write_base
char * m_write_ptr
char * m_write_end
char * m_buf_base
char * m_buf_end
int m_flags
char m_shortbuf [1]

Detailed Description

io_ptrs structure.

Definition at line 30 of file Streambuf.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
USER_BUF 
UNBUFFERED 
EOF_SEEN 
ERR_SEEN 

Definition at line 44 of file Streambuf.h.

00044 { USER_BUF = 1, UNBUFFERED = 2, EOF_SEEN = 4, ERR_SEEN = 8 };


Constructor & Destructor Documentation

ASSA::io_ptrs::io_ptrs (  )  [inline]

Definition at line 49 of file Streambuf.h.

References m_shortbuf.

00049                : m_read_base (0), m_read_ptr (0), m_read_end (0),
00050              m_write_base (0), m_write_ptr (0), m_write_end (0),
00051              m_buf_base (0), m_buf_end (0), m_flags (0)
00052         { 
00053             m_shortbuf [0] = 0; 
00054         }


Member Function Documentation

void io_ptrs::dump ( void   )  const

Definition at line 23 of file Streambuf.cpp.

References DL, ASSA::MemDump::getMemDump(), m_buf_base, m_buf_end, m_read_base, m_read_end, m_read_ptr, m_write_base, m_write_end, m_write_ptr, ASSA::STRMBUF, and trace_with_mask.

Referenced by ASSA::Socketbuf::doallocate(), ASSA::Socketbuf::overflow(), ASSA::Streambuf::setb(), ASSA::Streambuf::uflow(), and ASSA::Socketbuf::underflow().

00024 {
00025 #ifdef LOG_PACKET
00026     trace_with_mask("io_ptrs::dump",STRMBUF);
00027     int len;
00028 
00029     DL((STRMBUF,"---Ptr------:---Val---\n"));
00030     DL((STRMBUF,"m_read_base.: 0x%x\n", (u_long)m_read_base));
00031     DL((STRMBUF,"m_read_ptr..: 0x%x\n", (u_long)m_read_ptr ));
00032     DL((STRMBUF,"m_read_end..: 0x%x\n", (u_long)m_read_end ));
00033 
00034     if (m_read_ptr && (len = m_read_end - m_read_ptr) > 0) {
00035         MemDump get_area (m_read_ptr, len);
00036         DL((STRMBUF,"\n%s\n", get_area.getMemDump ()));
00037     }
00038 
00039     DL((STRMBUF,"m_write_base: 0x%x\n", (u_long)m_write_base));
00040     DL((STRMBUF,"m_write_ptr.: 0x%x\n", (u_long)m_write_ptr ));
00041     DL((STRMBUF,"m_write_end.: 0x%x\n", (u_long)m_write_end ));
00042 
00043     if (m_write_base && (len = m_write_ptr - m_write_base) > 0) {
00044         MemDump put_area (m_write_base, len);
00045         DL((STRMBUF,"%s\n", put_area.getMemDump ()));
00046     }
00047 
00048     DL((STRMBUF,"m_buf_base..: 0x%x\n", (u_long)m_buf_base  ));
00049     DL((STRMBUF,"m_buf_end...: 0x%x\n", (u_long)m_buf_end   ));
00050     DL((STRMBUF,"------------:---------\n");
00051 
00052 #endif
00053 }


Member Data Documentation

Definition at line 47 of file Streambuf.h.

Referenced by ASSA::Socketbuf::doallocate(), ASSA::Streambuf::init(), and io_ptrs().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Dec 21 14:50:42 2009 for libassa by  doxygen 1.6.1