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