|
unilink
0.4.3
A simple C++ library for unified async communication
|
UDP Transport implementation. More...
#include <udp.hpp>
Classes | |
| struct | Impl |
Public Member Functions | |
| ~UdpChannel () override | |
| UdpChannel (UdpChannel &&) noexcept | |
| UdpChannel & | operator= (UdpChannel &&) noexcept |
| UdpChannel (const UdpChannel &)=delete | |
| UdpChannel & | operator= (const UdpChannel &)=delete |
| void | start () override |
| void | stop () override |
| bool | is_connected () const override |
| void | async_write_copy (memory::ConstByteSpan data) override |
| void | async_write_move (std::vector< uint8_t > &&data) override |
| void | async_write_shared (std::shared_ptr< const std::vector< uint8_t >> data) override |
| void | on_bytes (OnBytes cb) override |
| void | on_state (OnState cb) override |
| void | on_backpressure (OnBackpressure cb) override |
Public Member Functions inherited from unilink::interface::Channel | |
| virtual | ~Channel ()=default |
Static Public Member Functions | |
| static std::shared_ptr< UdpChannel > | create (const config::UdpConfig &cfg) |
| static std::shared_ptr< UdpChannel > | create (const config::UdpConfig &cfg, boost::asio::io_context &ioc) |
Additional Inherited Members | |
Public Types inherited from unilink::interface::Channel | |
| using | OnBytes = std::function< void(memory::ConstByteSpan)> |
| using | OnState = std::function< void(base::LinkState)> |
| using | OnBackpressure = std::function< void(size_t)> |
|
defaultnoexcept |
|
delete |
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.
|
static |
|
static |
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.
|
delete |
|
defaultnoexcept |
|
overridevirtual |
Implements unilink::interface::Channel.
|
overridevirtual |
Implements unilink::interface::Channel.