|
unilink
0.4.3
A simple C++ library for unified async communication
|
Modernized UDP Wrapper. More...
#include <udp.hpp>
Classes | |
| struct | Impl |
Public Member Functions | |
| Udp (const config::UdpConfig &cfg) | |
| Udp (const config::UdpConfig &cfg, std::shared_ptr< boost::asio::io_context > external_ioc) | |
| Udp (std::shared_ptr< interface::Channel > channel) | |
| ~Udp () override | |
| Udp (Udp &&) noexcept | |
| Udp & | operator= (Udp &&) noexcept |
| Udp (const Udp &)=delete | |
| Udp & | operator= (const Udp &)=delete |
| std::future< bool > | start () override |
| void | stop () override |
| void | send (std::string_view data) override |
| void | send_line (std::string_view line) override |
| bool | is_connected () const override |
| ChannelInterface & | on_data (MessageHandler handler) override |
| ChannelInterface & | on_connect (ConnectionHandler handler) override |
| ChannelInterface & | on_disconnect (ConnectionHandler handler) override |
| ChannelInterface & | on_error (ErrorHandler handler) override |
| ChannelInterface & | auto_manage (bool manage=true) override |
| void | set_manage_external_context (bool manage) |
Public Member Functions inherited from unilink::wrapper::ChannelInterface | |
| virtual | ~ChannelInterface ()=default |
Additional Inherited Members | |
Public Types inherited from unilink::wrapper::ChannelInterface | |
| using | MessageHandler = std::function< void(const MessageContext &)> |
| using | ConnectionHandler = std::function< void(const ConnectionContext &)> |
| using | ErrorHandler = std::function< void(const ErrorContext &)> |
|
explicit |
| unilink::wrapper::Udp::Udp | ( | const config::UdpConfig & | cfg, |
| std::shared_ptr< boost::asio::io_context > | external_ioc | ||
| ) |
|
explicit |
|
overridedefault |
|
defaultnoexcept |
|
delete |
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
| void unilink::wrapper::Udp::set_manage_external_context | ( | bool | manage | ) |
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.
|
overridevirtual |
Implements unilink::wrapper::ChannelInterface.