#include <recipient.hh>
Definition at line 15 of file recipient.hh.
◆ Recipient()
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.
boost::asio::ip::tcp::endpoint m_endpoint
boost::asio::ip::tcp::socket m_sock
◆ ~Recipient()
Recipient::~Recipient |
( |
| ) |
|
|
inline |
◆ sock_reset()
void Recipient::sock_reset |
( |
| ) |
|
|
inline |
◆ sendIfPossible()
bool Recipient::sendIfPossible |
( |
const Frame & |
data | ) |
|
|
inline |
Definition at line 46 of file recipient.hh.
bool send(const Frame &data)
Send data.
◆ connect()
void Recipient::connect |
( |
| ) |
|
|
inlineprivate |
Definition at line 88 of file recipient.hh.
90 boost::system::error_code ec;
96 boost::asio::socket_base::send_buffer_size option(6108864);
98 boost::asio::socket_base::send_buffer_size option(67108864);
100 m_sock.set_option(option);
102 boost::system::error_code ec;
103 m_sock.shutdown(boost::asio::ip::tcp::socket::shutdown_receive, ec);
◆ stop()
Definition at line 107 of file recipient.hh.
109 boost::system::error_code ec;
110 m_sock.shutdown(boost::asio::ip::tcp::socket::shutdown_send, ec);
◆ send()
bool Recipient::send |
( |
const Frame & |
data | ) |
|
|
inlineprivate |
Send data.
- Parameters
-
- Returns
- true if OK; else false
Definition at line 119 of file recipient.hh.
121 boost::system::error_code ec;
bool write(const Vec &v, std::ostream &os)
Write a Vec(tor) to a stream.
◆ RecipientsHandler
◆ m_sock
boost::asio::ip::tcp::socket Recipient::m_sock |
|
private |
◆ m_endpoint
boost::asio::ip::tcp::endpoint Recipient::m_endpoint |
|
private |
◆ m_cbuffer
◆ m_connected
bool Recipient::m_connected |
|
private |
The documentation for this class was generated from the following file: