Sign in to follow this  

Boost::Asio

This topic is 2666 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("127.0.0.1", "13");
resolver.async_resolve(query, resolve_handler);
io_service.run();
}

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

This topic is 2666 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this