boost-asio
How to make boost::thread_group smaller having boost::asio::io_service::run in its threads?
Generally as I\'ve seen it is common way to create thread pools via \"io_service + thread_group\". Its really great for const size thread pools. Or pools that can only get bigger. But I wonder how to[详细]
2023-03-31 01:14 分类:问答BOOST ASIO: Why don't I get "bind: Address already in use" in Windows (but do get it in Linux)?
Trying to bind an already bound TCP port should raise exception (\"bind: Address already in use\" exception).[详细]
2023-03-30 18:30 分类:问答Boost asio socket: fastest way to read file from hard drive?
So I have tried: int buff_length = 8192; ifstream stream; char* buffer = new char[buff_length]; stream.open( path.string().c_str(), ios::binary );[详细]
2023-03-29 11:03 分类:问答Boost Asio serial port issue
I\'m using CodeBlocks on a windows systems and have downloaded Boost, complied and setup my IDE variables and build options. I have been successfully using other boost libraries and now I need to work[详细]
2023-03-29 00:27 分类:问答HTTPS request with Boost.Asio and OpenSSL
I\'m trying to read the ticker symbol at https://mtgox.com/api/0/data/ticker.php from my C++ application.[详细]
2023-03-28 07:28 分类:问答Difference between read_some/write_some and receive/send?
I am beginning to work with Boost Asio\'s TCP sockets.W开发者_如何学编程hat is the difference between read_some and receive and what is the difference between write_some and send?Thanks!As far as I re[详细]
2023-03-27 23:12 分类:问答boost asio for sync server keeping TCP session open (with google proto buffers)
I currently have a very simple boost::asio server that sends a status update upon connecting (using google proto buffers):[详细]
2023-03-27 10:33 分类:问答boost deadline_timer not kicking off
We have written a single threaded client based on the boost asio. The client needs to implement a timeout, so that the connection is broken if the read or write from server was not completed in a stip[详细]
2023-03-26 16:37 分类:问答Implements timeout using boost::asio::async_read without call run on io_service
I\'m trying to read from a input source (in this case stdin) with a timeout. Due to the design of the existing application where this have to fit is it not possible to call run on my io_service.[详细]
2023-03-26 13:30 分类:问答libboost ASIO. Simple asynchronous client server
I\'m trying to implement a simple client/server in ASIO. I\'d like the following on the serverside: onConnect()[详细]
2023-03-26 01:33 分类:问答