boost-asio
boost asio need to post n jobs only after m jobs have finished
I\'m looking for a way to wait for a number of jobs to finish, and then execute another completely different number of jobs. With threads, of course. A brief explanation:[详细]
2023-04-13 04:49 分类:问答Boost::asio::socket how to get int or uint from it that would be crossplatformly assignable back?
So we have some function like this: void SendData (/* what goes here if we can only 开发者_运维问答send to our function C POD types like int, uint etc? */ socket, std::string message)[详细]
2023-04-13 03:33 分类:问答boost asio async_write : how to not interleaving async_write calls?
Here\'s my implementation : Client A send a message for Client B Server process the message by async_read the right amount of data and[详细]
2023-04-12 23:25 分类:问答is it valid to async send data before completion handler of the previous one was invoked?
I\'m sending data asynchronously to TCP socket. Is it valid to send the next data piece before the previous one was reported as sent by completion handler?[详细]
2023-04-12 16:50 分类:问答how to use boost::asio::async_read_until with an external memory address as a buffer
async_read_until expects a basic_streambuf into which the data will be read. I don\'t want to allocate additional memory, but using a memory address (from a specified interface that I\'m not allowed t[详细]
2023-04-11 17:40 分类:问答Isn't boost::asio fully UNICODE compliant?
I am writing a C++ application that is using boost::asio for some http operations. I chose boost::asio assuming it is fully unicode compliant. However, I am unable compi开发者_开发问答le in UNICODE be[详细]
2023-04-11 05:07 分类:问答Difference between proactor pattern and synchronous model in web server
In synchronous model, when a client connects to the server, both the client and server have to sync with each other to finish some operations.[详细]
2023-04-11 02:32 分类:问答boost::asio when should I use socket::async_send instead of the free function async_write?
socket::async_send() is a composed method which is implemented in termos of zero or more calls to socket::async_write_some(). However, as the documentation describes:[详细]
2023-04-10 22:59 分类:问答Creating a high-performance network server in C++
I need to create a network server in C++ for a trading application. This network server needs to perform the following tasks:[详细]
2023-04-10 21:51 分类:问答System Error 955 when using resolver::async_resolve
At times I get the System Error 995 when using the async_resolve method from an tcp::resolver. The code below shows the relevant code lines.[详细]
2023-04-10 11:43 分类:问答