#include "assa/Assure.h"
#include "assa/Socket.h"
#include "assa/IPv4Socket.h"
#include <string>
Include dependency graph for xdrIOBuffer.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | ASSA |
Classes | |
class | ASSA::xdrIOBuffer |
Data are XDR-decoded on a fly.
Testing xdrIOBuffer object in conditional statement will produce false if:
Thus, data accumulation and data decoding functions are separated.
Initially, buffer is in waiting state. In this state, xdrIOBuffer object waits for bytes from the Socket stream.
When buffer object becomes full, the state is switched to xmitted. Now, an application code can read data from the buffer. The data will be XDR-decoded.
xdrIOBuffer object yields TRUE in conditional statements only in xmitted state. In other words, buffer is TRUE if it is full, and FALSE otherwise.
xdrIOBuffer can be used only once. You cannot "rewind", and therefore reuse it.
Definition in file xdrIOBuffer.h.