使用升压 asio 发送带外数据
Send out-of-band data using boost asio
就像在 gnu c 中一样,有没有办法在 boost 中发送带外数据。 https://www.gnu.org/software/libc/manual/html_node/Out_002dof_002dBand-Data.html
您可以设置带外标志:https://www.boost.org/doc/libs/1_71_0/doc/html/boost_asio/reference/basic_stream_socket/out_of_band_inline.html
boost::asio::ip::tcp::socket socket(my_context);
// set out of band option
boost::asio::socket_base::out_of_band_inline option(true);
socket.set_option(option);
// get out of band option
socket.get_option(option);
bool value = option.value();
相关文章:
- boost::asio UDP 广播客户端仅接收"fast"数据包
- TCP 服务器的异步读取使用 boost::asio 打印客户端套接字发送的数据
- boost::asio 不会触发读取处理程序,而 Wireshark 会看到传入的数据
- 如何使用 asio 本地数据报构建回显服务器和客户端?
- 如何使用 boost::asio 的 async_read_some() 读取所有可用数据,而无需等待新数据到达?
- boost::asio-async_read_some示例代码没有读取套接字中的所有数据
- 使用升压 asio 发送带外数据
- 提升 Asio SSL 无法第二次接收数据(第一次确定)
- boost::asio::async_read 无限循环,接收数据为零字节
- boost::asio 以async_read复制输入数据
- 以高数据速率发送图像数据超过提升::asio::udp?
- 使用 asio+ssl,async_write不会发送数据
- C 使用BOOST.ASIO和BEAST库中的身体发送数据
- Boost Asio网络发送/接收是否具有任何形式的数据完整性保证
- 提升 ASIO SSL 写入部分数据
- 了解 UDP 数据包大小限制的 TCP 数据包大小限制以及它在 boost::asio 编程级别的含义
- 通过 Socket 通过 boost asio 发送和接收 protobuf 数据
- 我们如何从BOOST :: ASIO :: TCP :: ip :: read_some呼叫中顺序接收多个数据
- 如何将每线程用户数据传递到ASIO处理程序中
- 与 Boost.Asio 同步和并发的数据结构模式