|
Boost Users : |
Subject: [Boost-users] asio:how to using iostream in blocking mode
From: maosen.zhang (maosen.zhang_at_[hidden])
Date: 2008-10-27 10:14:21
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net