boost-asio
Inline ntohs() / ntohl() in C++ / Boost ASIO
Hi I\'m using C++ / Boost ASIO and I have to inline ntohl() for performance reasons.Each data packet contains 256 int32s, hence a lot of calls to ntohl().Has anyone done this?[详细]
2023-04-06 17:56 分类:问答Boost.asio & UNIX signal handling
Preface I have a multi-threaded application running via Boost.Asio. There is only one boost::asio::io_service for the whole application and all the things are done inside it by a group of threads. So[详细]
2023-04-06 15:48 分类:问答Creating static library that uses Boost ASIO and does not expose it
I\'m trying to create a library that uses Boost ASIO(UDP multicast, asynchronous) and does not expose it.Basically I am following the async udp example, except I have made the io_service object a stat[详细]
2023-04-06 03:28 分类:问答Boost::asio: data get received only after other connection appeared
I\'m trying to use code examples in my application. At a connection client sends \"hello!\" to the server. Server receives it and answers on it somehow (and ends message with \"Hi, client! I\'m server[详细]
2023-04-05 02:28 分类:问答Where to destroy thread and deadline_timer objects after timeout?
my question is about a running deadline timers which wait for some operations represented by the same function to finish: But i dont\'t know, where to free my thread and deadline object after a safe f[详细]
2023-04-04 22:54 分类:问答Boost asio and thread, if i run two instances i get cpu at 100%
I created a console application that sends data on a network link. I used the boost library, both the thread and the asio ones; currently i\'m running it under Windows. If I run a single application i[详细]
2023-04-04 19:19 分类:问答Communication Chains Implementation
I\'m designing a new system that needs to support communication using several different communication protocols. I don\'t need to use them together, just to be able to switch between them easily. Also[详细]
2023-04-04 06:18 分类:问答Problem reading from boost basic_streambuf with an istream
I\'m having some problems reading from a streambuf which is being filled through an asyc_read(). When stepping through my code in VS i can see that the correct data is in the buffer but when i go to r[详细]
2023-04-04 05:21 分类:问答Ensuring data is being read with async_read
I am currently testing my network application in very low bandwidth environments.I currently have code that attempts to ensure that the connection is good by maki开发者_开发技巧ng sure I am still rece[详细]
2023-04-03 19:59 分类:问答What is boost::asio::ssl::context::load_verify_file and how to work with it?
Theare is a wary small amount of boost::asio::ssl small C++ educational codes base online. Even less on boost::asio::ssl::context::load_verify_file So I found one from here code with minimal modificat[详细]
2023-04-03 05:46 分类:问答