$darkmode
vtd::ScpTransceiver Class Reference

#include <scp_transceiver.hpp>

Inheritance diagram for vtd::ScpTransceiver:
Collaboration diagram for vtd::ScpTransceiver:

Public Member Functions

void send (const ScpMessage &msg)
 
void send (const std::string &msg)
 
void send (const char *msg)
 
bool has () const
 
std::string receive ()
 
- Public Member Functions inherited from cloe::utility::TcpTransceiver
 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
 

Protected Member Functions

void write (const std::string &msg)
 
void write (const char *msg)
 
- Protected Member Functions inherited from cloe::utility::TcpTransceiver
std::streamsize tcp_available_data () const
 
template<typename M >
void tcp_send (M *msg, size_t sz)
 

Friends

void to_json (cloe::Json j, const ScpTransceiver &t)
 

Additional Inherited Members

- Protected Attributes inherited from cloe::utility::TcpTransceiver
boost::asio::ip::tcp::iostream tcp_stream_
 
bool tcp_connected_ {false}
 
std::string tcp_host_ {}
 
uint16_t tcp_port_ {}
 

Detailed Description

ScpTransceiver is an SCP transceiver over TCP.


The documentation for this class was generated from the following files: