|
GKD.RoboCtrl
|
裸IO组件。 更多...
#include <base.hpp>
Public 成员函数 | |
| void | on_data (callback_fn< byte_span > auto fn) |
| 注册字节级别的回调。 | |
| template<typename Fn > requires (!std::same_as<utils::function_arg_t<Fn>,byte_span>) | |
| void | on_data (Fn &&fn) |
| template<roboctrl::utils::package T> requires (!std::same_as<T, byte_span>) | |
| awaitable< void > | send (const T &data) |
| 发送平凡类型数据。 | |
Public 成员函数 继承自 roboctrl::utils::immovable_base | |
| immovable_base (immovable_base &&)=delete | |
| immovable_base & | operator= (immovable_base &&)=delete |
Public 成员函数 继承自 roboctrl::utils::not_copyable_base | |
| not_copyable_base (const not_copyable_base &)=delete | |
| not_copyable_base & | operator= (const not_copyable_base &)=delete |
Protected 成员函数 | |
| void | dispatch (byte_span bytes) |
| 分发收到的字节流。 | |
分发收到的字节流。
| bytes | 接收到的缓冲 |
引用了 roboctrl::io::make_shared_from().
被这些函数引用 roboctrl::io::tcp::task() , 以及 roboctrl::io::udp::task().