|
GKD.RoboCtrl
RoboMaster Linux 电控:异步 IO、设备驱动与机器人控制
|
UDP data transport with explicit receive peers and one owning send queue.
在文件 udp_server.hpp 第 16 行定义.
#include <udp_server.hpp>
类 | |
| struct | info_type |
Public 类型 | |
| using | endpoint = asio::ip::udp::endpoint |
Public 成员函数 | |
| udp_server (const info_type &info) | |
| void | connect () |
| void | start () |
| void | stop () |
| endpoint | local_endpoint () const |
| template<typename Fn > | |
| void | on_data (const endpoint &peer, Fn fn) |
| awaitable< void > | send (const endpoint &peer, byte_span data) |
| awaitable< void > | task () |
| std::string | desc () const |
| using roboctrl::io::udp_server::endpoint = asio::ip::udp::endpoint |
在文件 udp_server.hpp 第 26 行定义.
|
explicit |
在文件 udp_server.cpp 第 6 行定义.
| void roboctrl::io::udp_server::connect | ( | ) |
在文件 udp_server.cpp 第 12 行定义.
|
inline |
在文件 udp_server.hpp 第 43 行定义.
|
inline |
在文件 udp_server.hpp 第 32 行定义.
|
inline |
在文件 udp_server.hpp 第 35 行定义.
在文件 udp_server.cpp 第 34 行定义.
| void roboctrl::io::udp_server::start | ( | ) |
在文件 udp_server.cpp 第 20 行定义.
| void roboctrl::io::udp_server::stop | ( | ) |
在文件 udp_server.cpp 第 27 行定义.
| awaitable< void > roboctrl::io::udp_server::task | ( | ) |
在文件 udp_server.cpp 第 66 行定义.