cost 296 ms
为什么 boost::asio::io_context::run() 在 boost::beast::websocket::stream::close() 之后仍然阻塞? - Why is boost::asio::io_context::run() still blocking after boost::beast::websocket::stream::close()?

我有一个线程池同时使用相同的io_context来运行 websocket stream。我这样做是因为首先,我实际上有 2 个 websocket 流(我将其抽象化是因为通过测试它似乎不是问题),并且因为我想要在 websocket 之外运行其他 io 操作,即async_read和async_ ...

使用 boost/beast 发送异步 https 请求 - Sending async https request using boost/beast

我有一个同步方法,它使用http::write发送 https 请求,而不是期望使用http::read读取它的响应。 但是,为了添加超时,我不得不在我的方法中移动到异步调用。 所以我尝试使用http::async_read和http::async_write ,但要保持整个流程同步,这样该方法只会 ...

Rbeast 时间序列 - 图中奇怪的时间轴 - Rbeast Time Series - Weird Time Axis In Plot

我正在调查新南威尔士州地区的环境空气污染,并使用 Rbeast 进行每日时间序列分解分析,以调查在 Covid-19 封锁期间是否存在变化点特征。 我创建了一个循环代码来分析每个区域内每种污染物的数据 - 但是 Beast X 轴(“日期” - 即 01-01-2021 - 理想情况下会绘制年份( ...

使用 Boost Beast 在 SSL 连接中构建特定于平台的客户端身份验证 - Using Boost Beast to build Platform specific client-side authentication in SSL connection

我正在 macOS 平台上开发基于 boost::beast 的应用程序,我想知道如何提供客户端证书来对服务器进行身份验证? 基本上,在 macOS 中,证书存储在钥匙串中,不能导出(由称为安全飞地的专用硬件支持,以提高安全性)…… 所以我想知道是否有适合使用本机 macOS 本机代码手动签署服务器 ...

如何使用 boost coroutine ts co_await 变量的变化? - How to co_await for a change in a variable using boost coroutine ts?

语境我使用 boost coroutine ts、boost asio 和 boost beast 构建了一个网络服务器。 有一个用于阅读的协程和一个用于编写的协程。 有一个 message_to_send 队列,其中消息被推送发送给用户。 编写协程检查 message_to_send 队列中是否 ...

错误:解决:找不到主机(权威)增强野兽 - Error: resolve: Host not found (authoritative) boost beast

我正在学习使用 boost 野兽库。 我已经写了服务器。 它工作得很好。我也有一个客户端发送 POST 请求。 我正在启动服务器。然而,我无法向他发送请求到URL http://localhost:8080,但作为响应,控制台输出:错误:解析:找不到主机(权威)代码写了基于: https : //g ...

C++ 在 beast boost 之上开发的代理,无法接收来自主机的大响应并将它们转发给原始(下游)客户端 - C++ proxy developed on top of the beast boost, cannot receive big responses from the host and forward them to the original (downstream) client

我已经使用 boost beast 库实现了一个代理,我在其中使用了来自 boost 组织的异步 https 服务器和客户端示例。 在我的代理中,我使用了http::request<http::string_body>和http::response<http::string_bod ...

如何使用 boost::beast,下载无阻塞且有响应的文件 - How to use boost::beast, download a file no blocking and with responses

我已经从这个例子开始,所以不会发布所有代码。 我的目标是下载一个大文件而不阻塞我的主线程。 第二个目标是获取通知,以便我可以更新进度条。 我确实有几种方式工作的代码。 首先是ioc.run(); 让它 go 工作,我下载了文件。 但是我无论如何都找不到在没有阻塞的情况下启动 session。 第二种 ...

Boost inflate 算法解压 - Boost inflate algorithm decompress

我正在使用 Websocket 客户端使用 c++ boost 开发一个简单的测试代码。 我收到回复的服务器说我需要使用膨胀算法解压缩消息。 我发现 boost Websocket 库中有放气选项,但它不起作用。 请让我知道如何将数据转换为解压缩的字符串。 谢谢 ! ...

是否提升 asio ssl::stream<tcp::socket> 支持多个挂起的 http::async_write 调用? - Does boost asio ssl::stream<tcp::socket> supports multiple pending http::async_write calls?

我有一个 http 客户端,它执行 http::async_write() 和一个在 ssl::stream 上执行 http::async_read() 的回调。 所有异步操作都包含在同一个显式链中。 简化的代码看起来像这样 我连续两次像这样调用 async_write 。 在执行第二次写入 ...

如何在 async_accept 失败时查看原始 tcp 数据? - How to see raw tcp data on async_accept failure?

我正在为 WebSocket 和 TCP 服务器使用 boost::beast 库。 由于要求,我必须使用相同的端口。 因此我在它之后实现了服务器。 接受函数失败后,我尝试读取原始 tcp 数据,但是我无法知道传递的数据。 我只能通过 ec.message() 知道失败原因。 当接受功能失败时 ...

通过Beast websocket发送连续数据块时无法找到“Broken Pipe”错误的原因 - Unable to find the reason for “Broken Pipe” error while sending continuous data chunks through Beast websocket

我正在使用IBM Watson语音向文本Web服务API进行流式音频识别 。 我用C ++(std 11)创建了一个带有boost (beast 1.68.0)库的web-socket。 我已成功连接到IBM服务器,并希望以下列方式向服务器发送231,296字节的原始音频数据。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM