#include <rdb_transceiver_tcp.hpp>
|
| bool | has () const override |
| |
| std::vector< std::shared_ptr< RDB_MSG_t > > | receive () override |
| |
| void | send (const RDB_MSG_t *message, size_t size) override |
| |
|
void | to_json (cloe::Json &j) const override |
| |
|
| TcpTransceiver (const std::string &host, uint16_t port) |
| |
| void | tcp_connect (const std::string &host, uint16_t port) |
| |
| bool | tcp_is_connected () const |
| |
| bool | tcp_is_ok () const |
| |
| void | tcp_disconnect () |
| |
|
uint16_t | tcp_port () const |
| |
|
const std::string & | tcp_host () const |
| |
|
std::string | tcp_endpoint () const |
| |
|
|
boost::asio::ip::tcp::iostream | tcp_stream_ |
| |
|
bool | tcp_connected_ {false} |
| |
|
std::string | tcp_host_ {} |
| |
|
uint16_t | tcp_port_ {} |
| |
◆ has()
| bool vtd::RdbTransceiverTcp::has |
( |
| ) |
const |
|
inlineoverridevirtual |
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.
Implements vtd::RdbTransceiver.
◆ receive()
| std::vector<std::shared_ptr<RDB_MSG_t> > vtd::RdbTransceiverTcp::receive |
( |
| ) |
|
|
inlineoverridevirtual |
◆ receive_wait()
| std::shared_ptr< RDB_MSG_t > vtd::RdbTransceiverTcp::receive_wait |
( |
| ) |
|
|
protected |
Synchronous (blocking) method to receive an RDB message.
◆ send()
| void vtd::RdbTransceiverTcp::send |
( |
const RDB_MSG_t * |
msg, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
Sends the RDB message with the given size.
- Parameters
-
| msg | RDB message |
| size | number of bytes |
Implements vtd::RdbTransceiver.
The documentation for this class was generated from the following files: