Hi all

In asio iostream client example:

     27     tcp::iostream s(argv[1], "7777");                    

     28     std::string line;

     29     std::getline(s, line);

     30     std::cout << line << std::endl;

Can I using iostream s in blocking mode? Which means std::getline will blocking to wait for data coming?

 

Best wishes,

                                                                                                                maosen