33 EL((
ASSAERR,
"Wrong state: %s\n",
b_.get_state ().c_str ()));
39 DL((
XDRBUFTRACE,
"Bytes in Socket buffer(s): %d\n",
s_.getBytesAvail ()));
66 if (
b_.m_sz ==
b_.size ()) {
231 "\tm_buf ........: 0x%x \n" \
232 "\tm_sz .........: %d \n" \
233 "\tm_ptr ........: 0x%x \n" \
234 "\tbytes left ...: %d \n" \
235 "\tm_state ......: %s \n\n",
242 image.getMemDump () ));
247 image.getMemDump () ));
#define EL(X)
A macro for writing error message to the Logger.
#define DL(X)
A macro for writing debug message to the Logger.
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
A Hex/Ascii memory dump of similar to od(1) UNIX utility.
XDRHack provides XDR definitions for systems that have them missing.
A wrapper class to provide AutoPtr with reference semantics.
static size_t xdr_length(const std::string &s_)
Give the true length of the XDR-encoded STL string.
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.
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.
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.
xdrIOBuffer & operator=(const xdrIOBuffer &rhs_)
Assign operator.
void dump() const
Dump object's internal state to the log file.
@ XDRBUF
Class xdrIOBuffer messages
@ ASSAERR
ASSA and system errors
@ XDRBUFTRACE
Extended xdrIOBuffer messages
Socket & operator>>(Socket &s_, CharInBuffer &b_)
Regardless of the delimeter size, which can be >1, add the character received to the buffer and compa...
This class allows to read XDR-encoded data from Socket stream asynchronously and then read from it as...