• Advertisement
Sign in to follow this  


This topic is 2732 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I don't know if its the right sub-forum to ask this but I'm now trying to learn the library boost::asio.

The thing is I bind some functions and for example, Im trying to get some input with cin. But since the function io_service.run() doesnt return, I dont know where to implement my other things.

Here is an example code of my client.

int main()
boost::asio::ip::tcp::resolver::query query("", "13");
resolver.async_resolve(query, resolve_handler);

I have a function to send data, I want to get input with cin, so how should I do this?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement