According to the Boost Documentation , when calling multiple threads, a thread io_service::run()pool is defined that the IO service can use to perform asynchronous tasks. It explicitly states that all threads that join the pool are considered equivalent.
io_service::run()
Does this mean that it is not possible to have a separate stream for reading from a socket and a separate one for writing? If possible, how to implement this?
, io_service::run(), . , . , io_service:: run() 2 , socket::async_send socket::async_receive , , . , .
socket::async_send
socket::async_receive
Source: https://habr.com/ru/post/1724582/More articles:Unit testing: using another method to validate a proven method is done correctly - c #What is this line: Ôªø and how to avoid it? - stringUsing Python shell in Vi mode on Windows - pythonRuby on Rails: маршрутизация для иерархии деревьев мест - ruby-on-railsCan I use the y operator to transliterate more than one to one in Perl? - perlHow to choose and set the correct loop invariant? - theoryCalling a function on the parent page from an ajax element - loading into a div - javascriptПолучение списка загруженных модулей из PRISM в WPF - wpfHow to set trigger on contacts database in Android - javaLaTeX Macro Symbol - macrosAll Articles