Go to the documentation of this file.
15 #ifndef XDR_IO_BUFFER_H
16 #define XDR_IO_BUFFER_H
102 operator void*()
const;
120 const char*
str ()
const;
160 operator
void*()
const
164 return (m_state == waiting || m_state == parsed)
187 return ((
const char*)
m_buf);
xdrIOBuffer(u_int len_)
Constructor.
void reset()
Clear up the internal buffer and reset state to waiting.
int buffer_size() const
Return buffer (maximum expected/allowable) size.
friend Socket & operator>>(Socket &src_, xdrIOBuffer &dest_)
Read raw data from Socket nonblocking and store into internal buffer.
string get_state() const
Give verbal interpretation of object's state.
void dump() const
Dump object's internal state to the log file.
xdrIOBuffer & operator=(const xdrIOBuffer &rhs_)
Assign operator.
@ XDRBUFTRACE
Extended xdrIOBuffer messages
char * m_ptr
Pointer for next I/O operation into the buffer
const char * str() const
Return pointer to the first byte of xdrIOBuffer.
~xdrIOBuffer()
Destructor.
void copy(const xdrIOBuffer &)
Copy object from argument.
int m_sz
Buffer size and maximum expected size.
int size() const
Return number of bytes in xdrIOBuffer.
state_t m_state
Object state.
#define trace_with_mask(s, m)