libassa 3.5.0
Public Types | Public Member Functions | Public Attributes

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.

{ 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.

               : m_read_base (0), m_read_ptr (0), m_read_end (0),
             m_write_base (0), m_write_ptr (0), m_write_end (0),
             m_buf_base (0), m_buf_end (0), m_flags (0)
        { 
            m_shortbuf [0] = 0; 
        }

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().

{
#ifdef LOG_PACKET
    trace_with_mask("io_ptrs::dump",STRMBUF);
    int len;

    DL((STRMBUF,"---Ptr------:---Val---\n"));
    DL((STRMBUF,"m_read_base.: 0x%x\n", (u_long)m_read_base));
    DL((STRMBUF,"m_read_ptr..: 0x%x\n", (u_long)m_read_ptr ));
    DL((STRMBUF,"m_read_end..: 0x%x\n", (u_long)m_read_end ));

    if (m_read_ptr && (len = m_read_end - m_read_ptr) > 0) {
        MemDump get_area (m_read_ptr, len);
        DL((STRMBUF,"\n%s\n", get_area.getMemDump ()));
    }

    DL((STRMBUF,"m_write_base: 0x%x\n", (u_long)m_write_base));
    DL((STRMBUF,"m_write_ptr.: 0x%x\n", (u_long)m_write_ptr ));
    DL((STRMBUF,"m_write_end.: 0x%x\n", (u_long)m_write_end ));

    if (m_write_base && (len = m_write_ptr - m_write_base) > 0) {
        MemDump put_area (m_write_base, len);
        DL((STRMBUF,"%s\n", put_area.getMemDump ()));
    }

    DL((STRMBUF,"m_buf_base..: 0x%x\n", (u_long)m_buf_base  ));
    DL((STRMBUF,"m_buf_end...: 0x%x\n", (u_long)m_buf_end   ));
    DL((STRMBUF,"------------:---------\n");

#endif
}

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