#include <recipients_handler.hh>
|
container_t::iterator | find (const boost::asio::ip::tcp::endpoint &ep) |
|
Definition at line 17 of file recipients_handler.hh.
◆ container_t
◆ RecipientsHandler()
RecipientsHandler::RecipientsHandler |
( |
size_t | circbuf_size = 10 | ) |
|
|
inline |
◆ ~RecipientsHandler()
RecipientsHandler::~RecipientsHandler |
( |
| ) |
|
|
inline |
◆ add()
bool RecipientsHandler::add |
( |
const std::string & | id | ) |
|
|
inline |
Definition at line 37 of file recipients_handler.hh.
38 {
40 {
46 return true;
47 }
48
49 return false;
50 }
boost::asio::io_service m_service
container_t::iterator find(const boost::asio::ip::tcp::endpoint &ep)
boost::asio::ip::tcp::endpoint make_endpoint(const std::string &address)
◆ remove()
bool RecipientsHandler::remove |
( |
const std::string & | id | ) |
|
|
inline |
Definition at line 52 of file recipients_handler.hh.
53 {
55
58
60
61
62
63 delete to_be_erased;
64 return true;
65 }
66
67 return false;
68 }
◆ send()
bool RecipientsHandler::send |
( |
const Frame & | data | ) |
|
|
inline |
◆ wipe()
void RecipientsHandler::wipe |
( |
| ) |
|
|
inline |
◆ find()
container_t::iterator RecipientsHandler::find |
( |
const boost::asio::ip::tcp::endpoint & | ep | ) |
|
|
inlineprivate |
Definition at line 92 of file recipients_handler.hh.
93 {
95 for (container_t::const_iterator et =
m_recipients.end(); it != et; ++it)
96 {
97 if ((*it)->m_endpoint == ep)
98 {
99 break;
100 }
101 }
102
103 return it;
104 }
◆ m_service
boost::asio::io_service RecipientsHandler::m_service |
|
private |
◆ m_circbuff_size
const size_t RecipientsHandler::m_circbuff_size |
|
private |
◆ m_recipients
The documentation for this class was generated from the following file: