#include <recipient.hh>
Definition at line 15 of file recipient.hh.
Recipient::Recipient |
( |
boost::asio::io_service & |
service, |
|
|
const boost::asio::ip::tcp::endpoint & |
endpoint, |
|
|
size_t |
circbuff_size |
|
) |
| |
|
inline |
Definition at line 24 of file recipient.hh.
36 LOG_ERROR <<
"Connection to " << m_endpoint <<
" failed";
boost::asio::ip::tcp::socket m_sock
boost::asio::ip::tcp::endpoint m_endpoint
Recipient::~Recipient |
( |
| ) |
|
|
inline |
void Recipient::sock_reset |
( |
| ) |
|
|
inline |
bool Recipient::sendIfPossible |
( |
const Frame & |
data | ) |
|
|
inline |
Definition at line 46 of file recipient.hh.
bool send(const Frame &data)
Send data.
void Recipient::connect |
( |
| ) |
|
|
inlineprivate |
Definition at line 88 of file recipient.hh.
90 boost::system::error_code ec;
95 boost::asio::socket_base::send_buffer_size option(67108864);
98 boost::system::error_code ec;
99 m_sock.shutdown(boost::asio::ip::tcp::socket::shutdown_receive, ec);
boost::asio::ip::tcp::socket m_sock
boost::asio::ip::tcp::endpoint m_endpoint
Definition at line 103 of file recipient.hh.
105 boost::system::error_code ec;
106 m_sock.shutdown(boost::asio::ip::tcp::socket::shutdown_send, ec);
boost::asio::ip::tcp::socket m_sock
bool Recipient::send |
( |
const Frame & |
data | ) |
|
|
inlineprivate |
Send data.
- Parameters
-
- Returns
- true if OK; else false
Definition at line 115 of file recipient.hh.
117 boost::system::error_code ec;
boost::asio::ip::tcp::socket m_sock
boost::asio::ip::tcp::endpoint m_endpoint
unsigned int getFrameLength() const
bool write(const Vec &v, std::ostream &os)
Write a Vec(tor) to a stream.
boost::asio::ip::tcp::socket Recipient::m_sock |
|
private |
boost::asio::ip::tcp::endpoint Recipient::m_endpoint |
|
private |
bool Recipient::m_connected |
|
private |
The documentation for this class was generated from the following file: