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);
A collection of assert function wrappers.
Class IPv4Socket covers domain types AF_INET and AF_UNIX.
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
Abstraction of socket data type.
void copy(const xdrIOBuffer &)
Copy object from argument.
xdrIOBuffer(u_int len_)
Constructor.
void reset()
Clear up the internal buffer and reset state to waiting.
friend Socket & operator>>(Socket &src_, xdrIOBuffer &dest_)
Read raw data from Socket nonblocking and store into internal buffer.
int m_sz
Buffer size and maximum expected size.
char * m_ptr
Pointer for next I/O operation into the buffer
int size() const
Return number of bytes in xdrIOBuffer.
~xdrIOBuffer()
Destructor.
state_t m_state
Object state.
const char * str() const
Return pointer to the first byte of xdrIOBuffer.
string get_state() const
Give verbal interpretation of object's state.
xdrIOBuffer & operator=(const xdrIOBuffer &rhs_)
Assign operator.
void dump() const
Dump object's internal state to the log file.
int buffer_size() const
Return buffer (maximum expected/allowable) size.
@ XDRBUFTRACE
Extended xdrIOBuffer messages