使用 boost asio 发送带外数据
Send out-of-band data using boost asio
就像在 gnu c 中一样,有什么方法可以在 boost.conf 中发送带外数据吗?
https://www.gnu.org/software/libc/manual/html_node/Out_002dof_002dBand-Data.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();
就像在 gnu c 中一样,有什么方法可以在 boost.conf 中发送带外数据吗? https://www.gnu.org/software/libc/manual/html_node/Out_002dof_002dBand-Data.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();