开发者

Using an accepted connection as a socket (cpp-netlib)

开发者 https://www.devze.com 2023-02-19 17:14 出处:网络
Is it possible to get an accepted connection via cpp-netlib and use it like开发者_高级运维 a normal TCP Boost.asio socket?The socket_ member of boost::network::http::impl::http_async_connection is pri

Is it possible to get an accepted connection via cpp-netlib and use it like开发者_高级运维 a normal TCP Boost.asio socket?


The socket_ member of boost::network::http::impl::http_async_connection is private, but that would be the member that contains the TCP socket you're looking for, so the short answer is "no"


Direct support is not available.

May be. we need to get SOCKET handle from one library and attach it to the second library's end point(socket).

0

精彩评论

暂无评论...
验证码 换一张
取 消