boost-asio
Using boost::asio to find all reachable ips on a subnet
I would like a way to use boost to find all reachable ips(responding to a ping) on a subnet. i.e. given subnet = 10.10.开发者_运维问答10.0 and ips 10.10.10.1-5 that are reachable, the result should b[详细]
2023-04-10 00:19 分类:问答Should I call socket::connect() from a handler invoked by resolver::async_resolve()?
I\'m using a wrapper class to represent a network connection. My implementation contains a method, called async_connect(), which resolves a host/service and connects to a related endpoint (if possible[详细]
2023-04-09 17:50 分类:问答Using Boost's ASIO, how can I wait on a Windows Event?
My program needs to gracefully terminate when a Windows event becomes signaled. I am using Boost\'s ASIO library for it\'s sockets. I 开发者_如何学编程only have one io_service object. How can I \'regi[详细]
2023-04-09 16:44 分类:问答Which `boost::system::error_code` value should be provided when `boost::asio::ip::tcp::resolver::resolve()` fails?
I want to return a boost::system::error_code indicationg whether a host/service could be resolved or not. There might be multiple reasons why a host/service look-up failed (e.g. network connection pro[详细]
2023-04-09 08:58 分类:问答What's exactly the difference between using strand::post and io_service::post with strand::wrap?
In my understanding, posting handlers to a strand object means: Only one of the posted handlers is executed at a time.[详细]
2023-04-09 08:08 分类:问答Memory SPIKE - Boost ASIO ASYNC read
Wrote a Server which just reads data from a client: Using a boost::array buffer Started the server and system monitor shows 1MB of usage.[详细]
2023-04-08 13:45 分类:问答int/char conversion in network frames with C++/boost::asio
Using g++ and boost::asio, I\'m trying to format network message frames containing the size of the data to be transmited:[详细]
2023-04-07 22:35 分类:问答Best way to transfer mixed unicode and single byte characters over boost::asio
We\'re trying to use winapi widestring functions to retrieve registry information.We then need to transfer that information across the network.[详细]
2023-04-07 10:17 分类:问答c++: How to init members of std::pair in constructor
I have the following class: typedef std::pair<boost::asio::ip::tcp::socket, boost::asio::ip::tcp::socket>socket_pair;[详细]
2023-04-07 05:03 分类:问答best way to transfer multi encoded characters over boost::asio
I want to transfer xml in 开发者_如何学Csingle byte characters, but some of the values will be in unicode.[详细]
2023-04-06 20:43 分类:问答