开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜