Jump to content
  • Advertisement
Sign in to follow this  
Eralp

Boost::Asio

This topic is 2911 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!