$darkmode
#include <rdb_transceiver.hpp>
Public Member Functions | |
| virtual bool | has () const =0 |
| virtual std::vector< std::shared_ptr< RDB_MSG_t > > | receive ()=0 |
| virtual void | send (const RDB_MSG_t *msg, size_t size)=0 |
| virtual void | to_json (cloe::Json &j) const =0 |
Friends | |
| void | to_json (cloe::Json &j, const RdbTransceiver &t) |
RdbTransceiver is an interface for a RDB connection to VTD.
There are currently two implementations of this: RDB over TCP and over shared memory. Currently, the shared memory implementation is not being used.
|
pure virtual |
Returns true when the transceiver has a message that can be received.
That is, if true, then a call to receive() will return a vector that is not empty.
Implemented in vtd::RdbTransceiverTcp, and vtd::RdbTransceiverShm.
|
pure virtual |
Non-blocking function to return all received RDB messages.
Implemented in vtd::RdbTransceiverTcp, and vtd::RdbTransceiverShm.
|
pure virtual |
Sends the RDB message with the given size.
| msg | RDB message |
| size | number of bytes |
Implemented in vtd::RdbTransceiverTcp, and vtd::RdbTransceiverShm.